Package edu.cmu.tetrad.data
Class CovariancesDoubleForkJoin
java.lang.Object
edu.cmu.tetrad.data.CovariancesDoubleForkJoin
Computes covariances using the standard calculation.
- Version:
- $Id: $Id
- Author:
- Kevin V. Bui (kvb2@pitt.edu), Joseph D. Ramsey
-
Constructor Summary
ConstructorsConstructorDescriptionCovariancesDoubleForkJoin(double[][] data, boolean biasCorrected) Constructor for CovariancesDoubleForkJoin. -
Method Summary
Modifier and TypeMethodDescriptiondoublecovariance(int i, int j) covariance.double[][]getMatrix.double[][]getSubMatrix(int[] rows, int[] cols) getSubMatrix.intsize()size.
-
Constructor Details
-
CovariancesDoubleForkJoin
public CovariancesDoubleForkJoin(double[][] data, boolean biasCorrected) Constructor for CovariancesDoubleForkJoin.
- Parameters:
data- an array ofdoubleobjectsbiasCorrected- a boolean
-
-
Method Details
-
covariance
public double covariance(int i, int j) covariance.
- Parameters:
i- a intj- a int- Returns:
- a double
-
size
public int size()size.
- Returns:
- a int
-
getMatrix
public double[][] getMatrix()getMatrix.
- Returns:
- an array of
doubleobjects
-
getSubMatrix
public double[][] getSubMatrix(int[] rows, int[] cols) getSubMatrix.
- Parameters:
rows- an array ofintobjectscols- an array ofintobjects- Returns:
- an array of
doubleobjects
-