Package edu.cmu.tetrad.util
Class UniformityTest
java.lang.Object
edu.cmu.tetrad.util.UniformityTest
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
ConstructorsConstructorDescriptionThe 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 TypeMethodDescriptionstatic double
getKsPValue
(List<Double> points) 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
The main method of the UniformityTest class.
-
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
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
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
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.
-