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) |
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 © 2014. All rights reserved.