Documentation of 'org.ejml.ops.CovarianceRandomDraw' Java class
CovarianceRandomDraw
org.ejml.ops

Class CovarianceRandomDraw



  • public class CovarianceRandomDraw
    extends java.lang.Object
    Generates random vectors based on a zero mean multivariate Gaussian distribution. The covariance matrix is provided in the constructor.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CovarianceRandomDraw(java.util.Random rand, DenseMatrix64F cov)
      Creates a random distribution with the specified mean and covariance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double computeLikelihoodP()
      Computes the likelihood of the random draw
      void next(DenseMatrix64F x)
      Makes a draw on the distribution.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CovarianceRandomDraw

        public CovarianceRandomDraw(java.util.Random rand,
                                    DenseMatrix64F 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.
    • Method Detail

      • next

        public void next(DenseMatrix64F x)
        Makes a draw on the distribution. The results are added to parameter 'x'
      • computeLikelihoodP

        public double computeLikelihoodP()
        Computes the likelihood of the random draw
        Returns:
        The likelihood.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.