public class ColtGaussian extends Object implements DistributionFunction
This class implements a gaussian distributor.
| Modifier and Type | Field and Description |
|---|---|
protected Double |
mean |
protected cern.jet.random.Normal |
rnd |
protected cern.jet.random.engine.MersenneTwister64 |
rndEngine |
protected Long |
seed |
protected Double |
variance |
| Constructor and Description |
|---|
ColtGaussian(Double mean,
Double variance) |
ColtGaussian(Double mean,
Double variance,
Long seed) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getMean() |
Long |
getSeed() |
Double |
getVariance() |
Double |
next() |
Double |
p(Double x) |
void |
setMean(Double mean) |
void |
setSeed(Long seed) |
void |
setVariance(Double variance) |
String |
toHtml() |
String |
toString() |
protected Long seed
protected Double mean
protected Double variance
protected cern.jet.random.Normal rnd
protected cern.jet.random.engine.MersenneTwister64 rndEngine
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 String toHtml()
public Double p(Double x)
p in interface DistributionFunctionDistributionFunction.p(java.lang.Double)Copyright © 2018. All rights reserved.