Class UniformityTest

java.lang.Object
edu.cmu.tetrad.util.UniformityTest

public class UniformityTest extends Object
The UniformityTest class provides methods to calculate the p-value of a list of points using the Kolmogorov-Smirnov test and determine if the distribution is uniform.
Author:
josephramsey
  • Constructor Summary

    Constructors
    Constructor
    Description
    The UniformityTest class is used to calculate the p-value of a list of points using the Kolmogorov-Smirnov test and determine if the distribution is uniform.
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    Calculates the p-value of a list of points using the Kolmogorov-Smirnov test.
    static double
    getKsPValue(List<Double> points, double min, double max)
    Calculates the p-value of a list of points using the Kolmogorov-Smirnov test.
    static void
    main(String[] args)
    The main method of the UniformityTest class.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UniformityTest

      public UniformityTest()
      The UniformityTest class is used to calculate the p-value of a list of points using the Kolmogorov-Smirnov test and determine if the distribution is uniform.
  • Method Details

    • getKsPValue

      public static double getKsPValue(List<Double> points)
      Calculates the p-value of a list of points using the Kolmogorov-Smirnov test.
      Parameters:
      points - A list of double values representing the data points.
      Returns:
      The p-value of the test.
    • getKsPValue

      public static double getKsPValue(List<Double> points, double min, double max)
      Calculates the p-value of a list of points using the Kolmogorov-Smirnov test.
      Parameters:
      points - A list of double values representing the data points.
      min - The minimum value of the data range.
      max - The maximum value of the data range.
      Returns:
      The p-value of the Kolmogorov-Smirnov test.
    • main

      public static void main(String[] args)
      The main method of the UniformityTest class. It calculates the p-value of a list of points using the Kolmogorov-Smirnov test and checks the p-value against a significance level to determine if the distribution is uniform.
      Parameters:
      args - The command-line arguments passed to the program.