public class GaussianDistribution extends StandardGaussianDistribution implements CentralMomentsSettable
Distribution.Type
Constructor and Description |
---|
GaussianDistribution(Matrix mu,
Matrix sigma2)
This constructor creates a Gaussian function with mean mu and variance sigma2.
|
Modifier and Type | Method and Description |
---|---|
void |
setMean(Matrix mean)
This method sets the mean vector of the random variable.
|
void |
setVariance(Matrix variance)
This method sets the variance-covariance matrix of the random variable.
|
getInstance, getMean, getMu, getProbabilityDensity, getRandomRealization, getSigma2, getStandardDeviation, getType, getVariance, isMultivariate, isParametric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isUnivariate
public GaussianDistribution(Matrix mu, Matrix sigma2)
mu
- the mean of the functionsigma2
- the variance of the functionjava.lang.UnsupportedOperationException
- if the matrix sigma2 is not positive definitepublic void setMean(Matrix mean)
CentralMomentsSettable
setMean
in interface CentralMomentsSettable
setMean
in class StandardGaussianDistribution
mean
- a Matrix instancepublic void setVariance(Matrix variance)
CentralMomentsSettable
setVariance
in interface CentralMomentsSettable
setVariance
in class StandardGaussianDistribution
variance
- a Matrix instance