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 TypeMethodDescriptiondouble
covariance
(int i, int j) covariance.double[][]
getMatrix.double[][]
getSubMatrix
(int[] rows, int[] cols) getSubMatrix.int
size()
size.
-
Constructor Details
-
CovariancesDoubleForkJoin
public CovariancesDoubleForkJoin(double[][] data, boolean biasCorrected) Constructor for CovariancesDoubleForkJoin.
- Parameters:
data
- an array of objectsbiasCorrected
- 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 objects
-
getSubMatrix
public double[][] getSubMatrix(int[] rows, int[] cols) getSubMatrix.
- Parameters:
rows
- an array of objectscols
- an array of objects- Returns:
- an array of objects
-