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, wait
isUnivariate
public int getNumberOfRealizations()
public void addRealization(Matrix value)
value
- the value of the observationpublic java.util.List<Matrix> getRealizations()
public Matrix getMean()
CentralMomentsGettable
getMean
in interface CentralMomentsGettable
public Matrix getVariance()
CentralMomentsGettable
getVariance
in interface CentralMomentsGettable
public boolean isParametric()
Distribution
isParametric
in interface Distribution
public boolean isMultivariate()
Distribution
isMultivariate
in interface Distribution
public Distribution.Type getType()
Distribution
getType
in interface Distribution
public Matrix getRandomRealization()
Distribution
getRandomRealization
in interface Distribution