 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package ca.uqac.lif.synthia.relative;
49 @SuppressWarnings(
"unchecked")
53 if (!(o instanceof Comparable))
60 @SuppressWarnings(
"unchecked")
65 super.copyInto(
this, with_state);
boolean select(T element)
Method to evaluate if an element is satisfying a condition.
Interface signaling that a picker can be shrunk.
Picker<? extends T > m_picker
The underlying picker producing the values to transform.
Comparable< T > m_reference
The reference object that candidate values are compared to.
A variant of PickIf that selects an element if it is smaller than a reference object.
static final transient RandomFloat instance
A public static instance of RandomFloat.
Pickers that produce pseudo-random objects such as numbers.
Generic runtime exception thrown by the Picker interface.
Returns object from a picker satisfying a condition.
Shrinkable< T > shrink(T o)
Shrinks a picker with default parameters.
Picks a floating point number uniformly in an interval.
int m_maxIteration
The maximal number of iteration that the while loop of the pick() method can do.
PickSmallerComparable< T > shrink(T o, Picker< Float > decision, float m)
Shrinks a picker.
Picker< T > duplicate(boolean with_state)
Creates a copy of the picker.
PickSmallerComparable< T > duplicate(boolean with_state)
Creates a copy of the picker.