public class BetaBinomial extends GenericDistribution
Constructor and Description |
---|
BetaBinomial(double mu,
double sigma,
int bd) |
Modifier and Type | Method and Description |
---|---|
double |
cumulative(double p,
boolean lower_tail,
boolean log_p) |
static double |
cumulative(double q,
double mu,
double sigma,
double bd,
boolean lower_tail,
boolean log_p)
Cumulative.
|
double |
density(double x,
boolean log) |
static double |
density(double x,
double mu,
double sigma,
double bd,
boolean give_log)
Density
|
double |
quantile(double q,
boolean lower_tail,
boolean log_p) |
static double |
quantile(double p,
double mu,
double sigma,
double bd,
boolean lower_tail,
boolean log_p)
Quantile.
|
double |
random() |
static double |
random(double mu,
double sigma,
double bd,
RandomEngine random)
Random variate
|
static double[] |
random(int n,
double mu,
double sigma,
double bd,
RandomEngine random) |
cumulative_hazard, cumulative_hazard, cumulative, cumulative, cumulative, density, density, getRandomEngine, hazard, hazard, inverse_survival, inverse_survival, quantile, quantile, quantile, random, random, setRandomEngine, survival, survival, survival
public static final double density(double x, double mu, double sigma, double bd, boolean give_log)
x
- MUST be an integer!mu
- MUST be between 0 and 1sigma
- MUST be > 0bd
- MUST be an integer!give_log
- public static final double cumulative(double q, double mu, double sigma, double bd, boolean lower_tail, boolean log_p)
q
- MUST be an integer!mu
- MUST be between 0 and 1sigma
- MUST be > 0bd
- MUST be an integer!lower_tail
- log_p
- public static final double quantile(double p, double mu, double sigma, double bd, boolean lower_tail, boolean log_p)
p
- MUST be between 0 and 1mu
- MUST be between 0 and 1sigma
- MUST be > 0bd
- MUST be an integer!lower_tail
- log_p
- public static final double random(double mu, double sigma, double bd, RandomEngine random)
mu
- MUST be between 0 and 1sigma
- MUST be > 0bd
- MUST be an integer!random
- public static final double[] random(int n, double mu, double sigma, double bd, 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