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