Package edu.cmu.tetrad.search
Class PopulationTetradTest
java.lang.Object
edu.cmu.tetrad.search.PopulationTetradTest
- All Implemented Interfaces:
TetradTest
Implements a test of tetrad constraints in a known correlation matrix. It might be useful for debugging
BuildPureClusters/Purify-like algorithm.
- Author:
- Ricardo Silva
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleString[]booleanoneFactorTest(int a, int b, int c, int d) booleanoneFactorTest(int a, int b, int c, int d, int e) booleanoneFactorTest(int a, int b, int c, int d, int e, int f) voidsetSignificance(double sig) booleantetradHolds(int v1, int v2, int v3, int v4) doubletetradPValue(int v1, int v2, int v3, int v4) doubletetradPValue(int i1, int j1, int k1, int l1, int i2, int j2, int k2, int l2) inttetradScore(int v1, int v2, int v3, int v4) Population scores: assumes CorrelationMatrix is the population covariance CorrelationMatrix.booleantetradScore1(int v1, int v2, int v3, int v4) booleantetradScore3(int v1, int v2, int v3, int v4) booleantwoFactorTest(int a, int b, int c, int d) booleantwoFactorTest(int a, int b, int c, int d, int e) booleantwoFactorTest(int a, int b, int c, int d, int e, int f)
-
Constructor Details
-
PopulationTetradTest
-
-
Method Details
-
getVarNames
- Specified by:
getVarNamesin interfaceTetradTest
-
getVariables
- Specified by:
getVariablesin interfaceTetradTest
-
getDataSet
- Specified by:
getDataSetin interfaceTetradTest
-
tetradScore
public int tetradScore(int v1, int v2, int v3, int v4) Population scores: assumes CorrelationMatrix is the population covariance CorrelationMatrix. Due to numerical rounding problems, we need a parameter epsilon to control it. Nothing here is implemented for discrete data (yet).- Specified by:
tetradScorein interfaceTetradTest
-
tetradScore3
public boolean tetradScore3(int v1, int v2, int v3, int v4) - Specified by:
tetradScore3in interfaceTetradTest
-
tetradScore1
public boolean tetradScore1(int v1, int v2, int v3, int v4) - Specified by:
tetradScore1in interfaceTetradTest
-
tetradHolds
public boolean tetradHolds(int v1, int v2, int v3, int v4) - Specified by:
tetradHoldsin interfaceTetradTest
-
oneFactorTest
public boolean oneFactorTest(int a, int b, int c, int d) - Specified by:
oneFactorTestin interfaceTetradTest
-
oneFactorTest
public boolean oneFactorTest(int a, int b, int c, int d, int e) - Specified by:
oneFactorTestin interfaceTetradTest
-
oneFactorTest
public boolean oneFactorTest(int a, int b, int c, int d, int e, int f) - Specified by:
oneFactorTestin interfaceTetradTest
-
twoFactorTest
public boolean twoFactorTest(int a, int b, int c, int d) - Specified by:
twoFactorTestin interfaceTetradTest
-
twoFactorTest
public boolean twoFactorTest(int a, int b, int c, int d, int e) - Specified by:
twoFactorTestin interfaceTetradTest
-
twoFactorTest
public boolean twoFactorTest(int a, int b, int c, int d, int e, int f) - Specified by:
twoFactorTestin interfaceTetradTest
-
tetradPValue
public double tetradPValue(int v1, int v2, int v3, int v4) - Specified by:
tetradPValuein interfaceTetradTest
-
tetradPValue
public double tetradPValue(int i1, int j1, int k1, int l1, int i2, int j2, int k2, int l2) - Specified by:
tetradPValuein interfaceTetradTest
-
getSignificance
public double getSignificance()- Specified by:
getSignificancein interfaceTetradTest
-
setSignificance
public void setSignificance(double sig) - Specified by:
setSignificancein interfaceTetradTest
-
getCovMatrix
- Specified by:
getCovMatrixin interfaceTetradTest
-