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, isParametricclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisUnivariatepublic 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)
CentralMomentsSettablesetMean in interface CentralMomentsSettablesetMean in class StandardGaussianDistributionmean - a Matrix instancepublic void setVariance(Matrix variance)
CentralMomentsSettablesetVariance in interface CentralMomentsSettablesetVariance in class StandardGaussianDistributionvariance - a Matrix instance