public class NegBinomial extends GenericDistribution
Constructor and Description |
---|
NegBinomial(double size,
double prob) |
Modifier and Type | Method and Description |
---|---|
static NegBinomial |
create_instance_from_mu(double size,
double mu) |
static double |
cumulative_mu(double x,
double size,
double mu,
boolean lower_tail,
boolean log_p) |
double |
cumulative(double p,
boolean lower_tail,
boolean log_p) |
static double |
cumulative(double x,
double size,
double prob,
boolean lower_tail,
boolean log_p) |
static double |
density_mu(double x,
double size,
double mu,
boolean give_log) |
double |
density(double x,
boolean log) |
static double |
density(double x,
double size,
double prob,
boolean give_log) |
static double |
quantile_mu(double p,
double size,
double mu,
boolean lower_tail,
boolean log_p) |
double |
quantile(double q,
boolean lower_tail,
boolean log_p) |
static double |
quantile(double p,
double size,
double prob,
boolean lower_tail,
boolean log_p) |
static double |
random_mu(double size,
double mu,
RandomEngine random) |
static double[] |
random_mu(int n,
double size,
double mu,
RandomEngine random) |
double |
random() |
static double |
random(double size,
double prob,
RandomEngine random) |
static double[] |
random(int n,
double size,
double prob,
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 size, double prob, boolean give_log)
public static final double density_mu(double x, double size, double mu, boolean give_log)
public static final double cumulative(double x, double size, double prob, boolean lower_tail, boolean log_p)
public static final double cumulative_mu(double x, double size, double mu, boolean lower_tail, boolean log_p)
public static final double quantile(double p, double size, double prob, boolean lower_tail, boolean log_p)
public static final double quantile_mu(double p, double size, double mu, boolean lower_tail, boolean log_p)
public static final double random(double size, double prob, RandomEngine random)
public static final double random_mu(double size, double mu, RandomEngine random)
public static final double[] random(int n, double size, double prob, RandomEngine random)
public static final double[] random_mu(int n, double size, double mu, 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 static final NegBinomial create_instance_from_mu(double size, double mu)