Package org.hipparchus.samples
Class LowDiscrepancyGeneratorComparison
java.lang.Object
org.hipparchus.samples.LowDiscrepancyGeneratorComparison
Plots 2D samples drawn from various pseudo / quasi-random generators.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Main frame for displaying low discrepancy points.static class
Plotting component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Program entry point.makeCircle
(int samples, RandomVectorGenerator generator) Generate points within a circle.makeRandom
(int samples, RandomVectorGenerator generator) Generate points.Normalize points.
-
Constructor Details
-
LowDiscrepancyGeneratorComparison
public LowDiscrepancyGeneratorComparison()Empty constructor.This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.
- Since:
- 3.0
-
-
Method Details
-
makeCircle
Generate points within a circle.- Parameters:
samples
- number of pointsgenerator
- random generator to generate points- Returns:
- generated points
-
makeRandom
Generate points.- Parameters:
samples
- number of pointsgenerator
- random generator to generate points- Returns:
- generated points
-
normalize
Normalize points.- Parameters:
input
- input points- Returns:
- normalized points in the [-1, 1 ] range
-
main
Program entry point.- Parameters:
args
- program arguments (unused here)
-