public class Gaussian extends Object implements DistributionFunction
This class implements a gaussian distributor.
| Modifier and Type | Field and Description |
|---|---|
(package private) Double |
mean |
(package private) Random |
rnd |
(package private) Long |
seed |
(package private) Double |
variance |
| Constructor and Description |
|---|
Gaussian() |
Gaussian(Double mean,
Double variance) |
Gaussian(Double mean,
Double variance,
Long seed) |
Gaussian(Long seed) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getMean() |
Long |
getSeed() |
Double |
getVariance() |
Double |
next() |
Double |
nextGaussian() |
Double |
p(Double x) |
static double |
phi(double x) |
static double |
Phi(double z) |
static double |
phi(double x,
double mu,
double sigma) |
static double |
Phi(double z,
double mu,
double sigma) |
void |
setMean(Double mean) |
void |
setSeed(Long seed) |
void |
setVariance(Double variance) |
String |
toHtml() |
String |
toString() |
public Gaussian()
public Gaussian(Long seed)
public Long getSeed()
public void setSeed(Long seed)
seed - the seed to setpublic Double getMean()
public void setMean(Double mean)
mean - the mean to setpublic Double getVariance()
public void setVariance(Double variance)
variance - the variance to setpublic Double next()
public Double nextGaussian()
public String toHtml()
public Double p(Double x)
p in interface DistributionFunctionDistributionFunction.p(java.lang.Double)public static double phi(double x)
public static double phi(double x,
double mu,
double sigma)
public static double Phi(double z)
public static double Phi(double z,
double mu,
double sigma)
Copyright © 2018. All rights reserved.