public abstract class GenericDistribution
extends java.lang.Object
Constructor and Description |
---|
GenericDistribution() |
Modifier and Type | Method and Description |
---|---|
double |
cumulative_hazard(double p)
Cumulative hazard function, which is basically -ln(1-CDF).
|
double[] |
cumulative_hazard(double[] p) |
double |
cumulative(double p)
Assume lower tail and non-log
|
double[] |
cumulative(double[] p)
Assume lower tail and non-log
|
double[] |
cumulative(double[] p,
boolean lower_tail,
boolean log_p) |
abstract double |
cumulative(double p,
boolean lower_tail,
boolean log_p) |
double[] |
density(double[] x)
Assume non-log
|
double[] |
density(double[] x,
boolean log) |
abstract double |
density(double x,
boolean log) |
RandomEngine |
getRandomEngine() |
double[] |
hazard(double[] t,
boolean give_log) |
double |
hazard(double t,
boolean give_log)
Hazard function of a distribution.
|
double[] |
inverse_survival(double[] p,
boolean log_p) |
double |
inverse_survival(double p,
boolean log_p)
Inverse survival function, which is basically quantile(1-p).
|
double |
quantile(double q)
Assume lower tail and non-log
|
double[] |
quantile(double[] q)
Assume lower tail and non-log
|
double[] |
quantile(double[] q,
boolean lower_tail,
boolean log_p) |
abstract double |
quantile(double q,
boolean lower_tail,
boolean log_p) |
abstract double |
random() |
double[] |
random(int n) |
double |
random(RandomEngine r)
Deprecated.
|
void |
setRandomEngine(RandomEngine r) |
double[] |
survival(double[] p)
Survival function, which is basically 1-CDF.
|
double[] |
survival(double[] p,
boolean log_p) |
double |
survival(double p,
boolean log_p)
Survival function, which is basically 1-CDF.
|
public abstract double density(double x, boolean log)
public abstract double cumulative(double p, boolean lower_tail, boolean log_p)
public abstract double quantile(double q, boolean lower_tail, boolean log_p)
public abstract double random()
public double[] density(double[] x, boolean log)
public double[] density(double[] x)
x
- public double cumulative(double p)
p
- public double[] cumulative(double[] p, boolean lower_tail, boolean log_p)
public double[] cumulative(double[] p)
p
- public double[] quantile(double[] q, boolean lower_tail, boolean log_p)
public double[] quantile(double[] q)
q
- public double quantile(double q)
q
- public double[] random(int n)
public double hazard(double t, boolean give_log)
t
- give_log
- public double[] hazard(double[] t, boolean give_log)
public double cumulative_hazard(double p)
p
- public double[] cumulative_hazard(double[] p)
public double survival(double p, boolean log_p)
p
- public double[] survival(double[] p, boolean log_p)
public double[] survival(double[] p)
p
- public double inverse_survival(double p, boolean log_p)
p
- log_p
- true if the p-value is in log scalepublic double[] inverse_survival(double[] p, boolean log_p)
public void setRandomEngine(RandomEngine r)
public RandomEngine getRandomEngine()
public double random(RandomEngine r)
r
- random number generator