Class TetradTestPopulation

java.lang.Object
edu.cmu.tetrad.search.utils.TetradTestPopulation
All Implemented Interfaces:
TetradTest

public class TetradTestPopulation extends Object implements 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 Details

    • TetradTestPopulation

      public TetradTestPopulation(CorrelationMatrix CorrelationMatrix)
  • Method Details

    • getVarNames

      public String[] getVarNames()
      Specified by:
      getVarNames in interface TetradTest
    • getVariables

      public List<Node> getVariables()
      Specified by:
      getVariables in interface TetradTest
    • getDataSet

      public DataSet getDataSet()
      Specified by:
      getDataSet in interface TetradTest
    • 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:
      tetradScore in interface TetradTest
    • tetradScore3

      public boolean tetradScore3(int v1, int v2, int v3, int v4)
      Specified by:
      tetradScore3 in interface TetradTest
    • tetradScore1

      public boolean tetradScore1(int v1, int v2, int v3, int v4)
      Specified by:
      tetradScore1 in interface TetradTest
    • tetradHolds

      public boolean tetradHolds(int v1, int v2, int v3, int v4)
      Specified by:
      tetradHolds in interface TetradTest
    • oneFactorTest

      public boolean oneFactorTest(int a, int b, int c, int d)
      Specified by:
      oneFactorTest in interface TetradTest
    • oneFactorTest

      public boolean oneFactorTest(int a, int b, int c, int d, int e)
      Specified by:
      oneFactorTest in interface TetradTest
    • twoFactorTest

      public boolean twoFactorTest(int a, int b, int c, int d)
      Specified by:
      twoFactorTest in interface TetradTest
    • twoFactorTest

      public boolean twoFactorTest(int a, int b, int c, int d, int e)
      Specified by:
      twoFactorTest in interface TetradTest
    • twoFactorTest

      public boolean twoFactorTest(int a, int b, int c, int d, int e, int f)
      Specified by:
      twoFactorTest in interface TetradTest
    • tetradPValue

      public double tetradPValue(int v1, int v2, int v3, int v4)
      Specified by:
      tetradPValue in interface TetradTest
    • getSignificance

      public double getSignificance()
      Specified by:
      getSignificance in interface TetradTest
    • setSignificance

      public void setSignificance(double sig)
      Specified by:
      setSignificance in interface TetradTest
    • getCovMatrix

      public ICovarianceMatrix getCovMatrix()
      Specified by:
      getCovMatrix in interface TetradTest