public class EmpiricalDistribution extends java.lang.Object implements Distribution, java.io.Serializable
Distribution.Type| Constructor and Description |
|---|
EmpiricalDistribution()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRealization(Matrix value)
This method sets a given observation of the nonparametric distribution.
|
Matrix |
getMean()
This method returns the first central moment, i.e.
|
int |
getNumberOfRealizations()
This method returns the number of observations in this nonparametric distribution.
|
Matrix |
getRandomRealization()
This method draws a random realization from the distribution.
|
java.util.List<Matrix> |
getRealizations()
This method returns the array that contains all the observations of this distribution.
|
Distribution.Type |
getType()
This method returns the type of the distribution.
|
Matrix |
getVariance()
This method returns the second central moment, i.e.
|
boolean |
isMultivariate()
This method returns true if the GaussianFunction instance is multivariate.
|
boolean |
isParametric()
This method returns true if the distribution is parametric or false otherwise.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisUnivariatepublic int getNumberOfRealizations()
public void addRealization(Matrix value)
value - the value of the observationpublic java.util.List<Matrix> getRealizations()
public Matrix getMean()
CentralMomentsGettablegetMean in interface CentralMomentsGettablepublic Matrix getVariance()
CentralMomentsGettablegetVariance in interface CentralMomentsGettablepublic boolean isParametric()
DistributionisParametric in interface Distributionpublic boolean isMultivariate()
DistributionisMultivariate in interface Distributionpublic Distribution.Type getType()
DistributiongetType in interface Distributionpublic Matrix getRandomRealization()
DistributiongetRandomRealization in interface Distribution