Class LowDiscrepancyGeneratorComparison

java.lang.Object
org.hipparchus.samples.LowDiscrepancyGeneratorComparison

public class LowDiscrepancyGeneratorComparison extends Object
Plots 2D samples drawn from various pseudo / quasi-random generators.
  • 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

      public static List<Vector2D> makeCircle(int samples, RandomVectorGenerator generator)
      Generate points within a circle.
      Parameters:
      samples - number of points
      generator - random generator to generate points
      Returns:
      generated points
    • makeRandom

      public static List<Vector2D> makeRandom(int samples, RandomVectorGenerator generator)
      Generate points.
      Parameters:
      samples - number of points
      generator - 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)