Package edu.cmu.tetrad.search.utils
Class EstimateRank
java.lang.Object
edu.cmu.tetrad.search.utils.EstimateRank
Estimates the rank of a matrix.
- Version:
- $Id: $Id
- Author:
- adambrodie
-
Method Summary
Modifier and TypeMethodDescriptionstatic double[]
CanCor
(double[][] A, double[][] B) Compute canonical correlations from data.static double[]
CanCor
(int[] iA, int[] iB, double[][] cov) Compute canonical correlations from covariance matrix.static int
estimate
(double[][] A, double[][] B, double alpha) Estimate rank from data.static int
estimate
(int[] iA, int[] iB, double[][] cov, int N, double alpha) Estimate rank from covariance matrix.
-
Method Details
-
CanCor
public static double[] CanCor(double[][] A, double[][] B) Compute canonical correlations from data.- Parameters:
A
- an array of objectsB
- an array of objects- Returns:
- an array of objects
-
CanCor
public static double[] CanCor(int[] iA, int[] iB, double[][] cov) Compute canonical correlations from covariance matrix.- Parameters:
iA
- an array of objectsiB
- an array of objectscov
- an array of objects- Returns:
- an array of objects
-
estimate
public static int estimate(double[][] A, double[][] B, double alpha) Estimate rank from data.- Parameters:
A
- an array of objectsB
- an array of objectsalpha
- a double- Returns:
- a int
-
estimate
public static int estimate(int[] iA, int[] iB, double[][] cov, int N, double alpha) Estimate rank from covariance matrix.- Parameters:
iA
- an array of objectsiB
- an array of objectscov
- an array of objectsN
- a intalpha
- a double- Returns:
- a int
-