public class HyperGeometric extends GenericDistribution
Modifier and Type | Class and Description |
---|---|
static class |
HyperGeometric.RandomState |
Constructor and Description |
---|
HyperGeometric(double r,
double b,
double n) |
Modifier and Type | Method and Description |
---|---|
static HyperGeometric.RandomState |
create_random_state() |
double |
cumulative(double p,
boolean lower_tail,
boolean log_p) |
static double |
cumulative(double x,
double NR,
double NB,
double n,
boolean lower_tail,
boolean log_p) |
double |
density(double x,
boolean log) |
static double |
density(double x,
double r,
double b,
double n,
boolean give_log) |
static double |
pdhyper(double x,
double NR,
double NB,
double n,
boolean log_p) |
double |
quantile(double q,
boolean lower_tail,
boolean log_p) |
static double |
quantile(double p,
double NR,
double NB,
double n,
boolean lower_tail,
boolean log_p) |
double |
random() |
static double |
random(double nn1in,
double nn2in,
double kkin,
RandomEngine random) |
static double |
random(double nn1in,
double nn2in,
double kkin,
RandomEngine random,
HyperGeometric.RandomState state) |
double[] |
random(int ct) |
static double[] |
random(int n,
double nn1in,
double nn2in,
double kkin,
RandomEngine random) |
static double[] |
random(int n,
double nn1in,
double nn2in,
double kkin,
RandomEngine random,
HyperGeometric.RandomState state) |
cumulative_hazard, cumulative_hazard, cumulative, cumulative, cumulative, density, density, getRandomEngine, hazard, hazard, inverse_survival, inverse_survival, quantile, quantile, quantile, random, setRandomEngine, survival, survival, survival
public static final HyperGeometric.RandomState create_random_state()
public static final double density(double x, double r, double b, double n, boolean give_log)
public static final double pdhyper(double x, double NR, double NB, double n, boolean log_p)
public static final double cumulative(double x, double NR, double NB, double n, boolean lower_tail, boolean log_p)
public static final double quantile(double p, double NR, double NB, double n, boolean lower_tail, boolean log_p)
public static final double random(double nn1in, double nn2in, double kkin, RandomEngine random)
public static final double random(double nn1in, double nn2in, double kkin, RandomEngine random, HyperGeometric.RandomState state)
public static final double[] random(int n, double nn1in, double nn2in, double kkin, RandomEngine random, HyperGeometric.RandomState state)
public static final double[] random(int n, double nn1in, double nn2in, double kkin, RandomEngine random)
public double density(double x, boolean log)
density
in class GenericDistribution
public double cumulative(double p, boolean lower_tail, boolean log_p)
cumulative
in class GenericDistribution
public double quantile(double q, boolean lower_tail, boolean log_p)
quantile
in class GenericDistribution
public double random()
random
in class GenericDistribution
public double[] random(int ct)
random
in class GenericDistribution