Class CovariancesDoubleForkJoin

java.lang.Object
edu.cmu.tetrad.data.CovariancesDoubleForkJoin

public class CovariancesDoubleForkJoin extends Object
Computes covariances using the standard calculation.
Version:
$Id: $Id
Author:
Kevin V. Bui (kvb2@pitt.edu), Joseph D. Ramsey
  • Constructor Details

    • CovariancesDoubleForkJoin

      public CovariancesDoubleForkJoin(double[][] data, boolean biasCorrected)

      Constructor for CovariancesDoubleForkJoin.

      Parameters:
      data - an array of double objects
      biasCorrected - a boolean
  • Method Details

    • covariance

      public double covariance(int i, int j)

      covariance.

      Parameters:
      i - a int
      j - a int
      Returns:
      a double
    • size

      public int size()

      size.

      Returns:
      a int
    • getMatrix

      public double[][] getMatrix()

      getMatrix.

      Returns:
      an array of double objects
    • getSubMatrix

      public double[][] getSubMatrix(int[] rows, int[] cols)

      getSubMatrix.

      Parameters:
      rows - an array of int objects
      cols - an array of int objects
      Returns:
      an array of double objects