public class TruncatedGaussianDistribution extends StandardGaussianDistribution implements BoundedDistribution
Modifier and Type | Class and Description |
---|---|
protected class |
TruncatedGaussianDistribution.Bound |
Distribution.Type
Constructor and Description |
---|
TruncatedGaussianDistribution()
Constructor 1.
|
TruncatedGaussianDistribution(Matrix mu,
Matrix sigma2)
Constructor 2.
|
Modifier and Type | Method and Description |
---|---|
Matrix |
getMean()
This method returns the first central moment, i.e.
|
Matrix |
getRandomRealization()
This method draws a random realization from the distribution.
|
Matrix |
getVariance()
This method returns the second central moment, i.e.
|
void |
setLowerBoundValue(Matrix lowerBoundValue)
This method sets the lower bound.
|
void |
setUpperBoundValue(Matrix upperBoundValue)
This method sets the lower bound.
|
getInstance, getMu, getProbabilityDensity, getSigma2, getStandardDeviation, getType, isMultivariate, isParametric, setMean, setVariance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isUnivariate
public TruncatedGaussianDistribution()
public Matrix getMean()
CentralMomentsGettable
getMean
in interface CentralMomentsGettable
getMean
in class StandardGaussianDistribution
public Matrix getVariance()
CentralMomentsGettable
getVariance
in interface CentralMomentsGettable
getVariance
in class StandardGaussianDistribution
public Matrix getRandomRealization()
Distribution
getRandomRealization
in interface Distribution
getRandomRealization
in class StandardGaussianDistribution
public void setLowerBoundValue(Matrix lowerBoundValue)
BoundedDistribution
setLowerBoundValue
in interface BoundedDistribution
lowerBoundValue
- a Matrix instancepublic void setUpperBoundValue(Matrix upperBoundValue)
BoundedDistribution
setUpperBoundValue
in interface BoundedDistribution
upperBoundValue
- a Matrix instance