Package org.ejml.dense.row
Class CovarianceRandomDraw_DDRM
- java.lang.Object
-
- org.ejml.dense.row.CovarianceRandomDraw_DDRM
-
public class CovarianceRandomDraw_DDRM extends java.lang.ObjectGenerates random vectors based on a zero mean multivariate Gaussian distribution. The covariance matrix is provided in the constructor.
-
-
Constructor Summary
Constructors Constructor Description CovarianceRandomDraw_DDRM(java.util.Random rand, org.ejml.data.DMatrixRMaj cov)Creates a random distribution with the specified mean and covariance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecomputeLikelihoodP()Computes the likelihood of the random drawvoidnext(org.ejml.data.DMatrixRMaj x)Makes a draw on the distribution.
-
-
-
Constructor Detail
-
CovarianceRandomDraw_DDRM
public CovarianceRandomDraw_DDRM(java.util.Random rand, org.ejml.data.DMatrixRMaj cov)Creates a random distribution with the specified mean and covariance. The references to the variables are not saved, their value are copied.- Parameters:
rand- Used to create the random numbers for the draw. Reference is saved.cov- The covariance of the distribution. Not modified.
-
-