Package jdistlib
Class HyperGeometric
java.lang.Object
jdistlib.generic.GenericDistribution
jdistlib.HyperGeometric
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doubleprotected HyperGeometric.RandomStateFields inherited from class jdistlib.generic.GenericDistribution
random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final HyperGeometric.RandomStatedoublecumulative(double p, boolean lower_tail, boolean log_p) static final doublecumulative(double x, double NR, double NB, double n, boolean lower_tail, boolean log_p) doubledensity(double x, boolean log) static final doubledensity(double x, double r, double b, double n, boolean give_log) static final doublepdhyper(double x, double NR, double NB, double n, boolean log_p) doublequantile(double q, boolean lower_tail, boolean log_p) static final doublequantile(double p, double NR, double NB, double n, boolean lower_tail, boolean log_p) doublerandom()static final doublerandom(double nn1in, double nn2in, double kkin, RandomEngine random) static final doublerandom(double nn1in, double nn2in, double kkin, RandomEngine random, HyperGeometric.RandomState state) double[]random(int ct) static final double[]random(int n, double nn1in, double nn2in, double kkin, RandomEngine random) static final double[]random(int n, double nn1in, double nn2in, double kkin, RandomEngine random, HyperGeometric.RandomState state) Methods inherited from class jdistlib.generic.GenericDistribution
copyBackward, cumulative, cumulative, cumulative, cumulative_hazard, cumulative_hazard, cumulativeInto, density, density, densityInto, getRandomEngine, hazard, hazard, inverse_survival, inverse_survival, quantile, quantile, quantile, quantileInto, random, randomInto, setRandomEngine, survival, survival, survival
-
Field Details
-
r
protected double r -
b
protected double b -
n
protected double n -
state
-
-
Constructor Details
-
HyperGeometric
public HyperGeometric(double r, double b, double n)
-
-
Method Details
-
create_random_state
-
density
public static final double density(double x, double r, double b, double n, boolean give_log) -
pdhyper
public static final double pdhyper(double x, double NR, double NB, double n, boolean log_p) -
cumulative
public static final double cumulative(double x, double NR, double NB, double n, boolean lower_tail, boolean log_p) -
quantile
public static final double quantile(double p, double NR, double NB, double n, boolean lower_tail, boolean log_p) -
random
-
random
public static final double random(double nn1in, double nn2in, double kkin, RandomEngine random, HyperGeometric.RandomState state) -
random
public static final double[] random(int n, double nn1in, double nn2in, double kkin, RandomEngine random, HyperGeometric.RandomState state) -
random
public static final double[] random(int n, double nn1in, double nn2in, double kkin, RandomEngine random) -
density
public double density(double x, boolean log) - Specified by:
densityin classGenericDistribution
-
cumulative
public double cumulative(double p, boolean lower_tail, boolean log_p) - Specified by:
cumulativein classGenericDistribution
-
quantile
public double quantile(double q, boolean lower_tail, boolean log_p) - Specified by:
quantilein classGenericDistribution
-
random
public double random()- Specified by:
randomin classGenericDistribution
-
random
public double[] random(int ct) - Overrides:
randomin classGenericDistribution
-