samples¶
- odl.diagnostics.examples.samples(*sets)[source]¶
Generate samples from the given sets using their
examples
method.- Parameters:
- set1, ..., setN
Set
instance Set(s) from which to generate the samples.
- set1, ..., setN
- Returns:
- samples
generator
Generator that yields tuples of examples from the sets.
- samples
Examples
>>> R, C = odl.RealNumbers(), odl.ComplexNumbers() >>> for [name_x, x], [name_y, y] in samples(R, C): pass # use examples