Package org.hipparchus.samples
Class LowDiscrepancyGeneratorComparison
- java.lang.Object
-
- org.hipparchus.samples.LowDiscrepancyGeneratorComparison
-
public class LowDiscrepancyGeneratorComparison extends Object
Plots 2D samples drawn from various pseudo / quasi-random generators.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LowDiscrepancyGeneratorComparison.Display
Main frame for displaying low discrepancy points.static class
LowDiscrepancyGeneratorComparison.Plot
Plotting component.
-
Constructor Summary
Constructors Constructor Description LowDiscrepancyGeneratorComparison()
Empty constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Program entry point.static List<Vector2D>
makeCircle(int samples, RandomVectorGenerator generator)
Generate points within a circle.static List<Vector2D>
makeRandom(int samples, RandomVectorGenerator generator)
Generate points.static List<Vector2D>
normalize(List<Vector2D> input)
Normalize points.
-
-
-
Method Detail
-
makeCircle
public static List<Vector2D> makeCircle(int samples, RandomVectorGenerator generator)
Generate points within a circle.- Parameters:
samples
- number of pointsgenerator
- random generator to generate points- Returns:
- generated points
-
makeRandom
public static List<Vector2D> makeRandom(int samples, RandomVectorGenerator generator)
Generate points.- Parameters:
samples
- number of pointsgenerator
- random generator to generate points- Returns:
- generated points
-
normalize
public static List<Vector2D> normalize(List<Vector2D> input)
Normalize points.- Parameters:
input
- input points- Returns:
- normalized points in the [-1, 1 ] range
-
main
public static void main(String[] args)
Program entry point.- Parameters:
args
- program arguments (unused here)
-
-