Package jdistlib.disttest
Class DiscretePValueDistribution
java.lang.Object
jdistlib.disttest.DiscretePValueDistribution
Finite null distribution of a discrete p-value.
The CDF must be super-uniform (F(t) <= t) so it is a valid
p-value distribution. For a conventional exact p-value whose CDF equals
each attainable p-value at support points, use exact(double[]).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecdf(double value) Evaluates the right-continuous CDF.static DiscretePValueDistributionexact(double[] support) Builds the common exact-p-value distribution with F(t)=t on its support.double[]Returns a defensive copy of the attainable p-values.
-
Constructor Details
-
DiscretePValueDistribution
public DiscretePValueDistribution(double[] support, double[] cdf)
-
-
Method Details
-
exact
Builds the common exact-p-value distribution with F(t)=t on its support. -
getSupport
public double[] getSupport()Returns a defensive copy of the attainable p-values. -
cdf
public double cdf(double value) Evaluates the right-continuous CDF.
-