public class Normal extends GenericDistribution
Constructor and Description |
---|
Normal()
Constructor for standard normal (i.e., mean = 0, sd = 1)
|
Normal(double mu,
double sigma) |
Modifier and Type | Method and Description |
---|---|
static double |
cumulative_standard(double x) |
double |
cumulative(double p,
boolean lower_tail,
boolean log_p) |
static double |
cumulative(double x,
double mu,
double sigma) |
static double |
cumulative(double x,
double mu,
double sigma,
boolean lower_tail,
boolean log_p) |
double |
density(double x,
boolean log) |
static double |
density(double x,
double mu,
double sigma,
boolean give_log) |
double |
quantile(double q,
boolean lower_tail,
boolean log_p) |
static double |
quantile(double p,
double mu,
double sigma,
boolean lower_tail,
boolean log_p) |
static double |
random_ahrens_dieter(double mu,
double sigma,
RandomEngine random) |
static double |
random_box_muller(double mu,
double sigma,
RandomEngine random) |
static double |
random_kinderman_ramage(double mu,
double sigma,
RandomEngine random) |
static double[] |
random_standard(int n,
RandomEngine random) |
static double |
random_standard(RandomEngine random) |
double |
random() |
static double |
random(double mu,
double sigma,
RandomEngine random)
Random normal by quantile inversion -- the default in R
|
static double[] |
random(int n,
double mu,
double sigma,
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 Normal()
public Normal(double mu, double sigma)
public static final double density(double x, double mu, double sigma, boolean give_log)
public static final double cumulative_standard(double x)
public static final double cumulative(double x, double mu, double sigma)
public static final double cumulative(double x, double mu, double sigma, boolean lower_tail, boolean log_p)
public static final double quantile(double p, double mu, double sigma, boolean lower_tail, boolean log_p)
public static final double random(double mu, double sigma, RandomEngine random)
mu
- sigma
- random
- public static final double random_standard(RandomEngine random)
public static final double[] random(int n, double mu, double sigma, RandomEngine random)
public static final double[] random_standard(int n, RandomEngine random)
public static final double random_ahrens_dieter(double mu, double sigma, RandomEngine random)
public static final double random_kinderman_ramage(double mu, double sigma, RandomEngine random)
public static final double random_box_muller(double mu, double sigma, 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