D - a Distribution derived instancepublic abstract class RandomVariable<D extends Distribution> extends java.lang.Object implements CentralMomentsGettable, java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
RandomVariable(D distribution) |
| Modifier and Type | Method and Description |
|---|---|
D |
getDistribution()
This method returns the assumed distribution for the random variable.
|
Matrix |
getMean()
This method returns the first central moment, i.e.
|
Matrix |
getVariance()
This method returns the second central moment, i.e.
|
protected RandomVariable(D distribution)
public D getDistribution()
public Matrix getMean()
CentralMomentsGettablegetMean in interface CentralMomentsGettablepublic Matrix getVariance()
CentralMomentsGettablegetVariance in interface CentralMomentsGettable