 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package examples.hypersphere;
43 @SuppressWarnings(
"unchecked")
44 public static
void main(String[] args)
51 .
add(0d, 0.25).add(Math.PI / 2, 0.25).add(Math.PI, 0.25).add(3 * Math.PI / 2, 0.25);
55 for (
int i = 0; i < 100; i++)
Miscellaneous pickers performing various functions.
float[] pick()
Picks an object.
Pickers generating multi-dimensional numerical vectors.
Pickers that produce pseudo-random objects such as numbers.
Picker that returns the same object every time.
Generates n-dimensional vectors with a given modulus.
Object providing a few utility methods to simplify the examples in this project.
RandomFloat setSeed(int seed)
Choice< T > add(ProbabilityChoice< T > pc)
Adds an object-probability association.
RandomInteger setSeed(int seed)
Picks an integer uniformly in an interval.
Generates a sequence of monotonically increasing numerical values.
Picks a floating point number uniformly in an interval.
Picks an element from a collection, where the probability of picking each element can be user-defined...
static void print(PrintStream ps, Object o)
Prints an object to a print stream.
Generates two-dimensional points lying along an oblique line.
static void main(String[] args)