/** * Constructs a test using the given covariance matrix. Fourth moment statistics are not * caculated; it is assumed that the data are distributed as multivariate Gaussian. */ public DeltaSextadTest(ICovarianceMatrix cov) { if (cov == null) { throw new NullPointerException(); } this.cov = cov; this.N = cov.getSampleSize(); this.numVars = cov.getVariables().size(); this.variables = cov.getVariables(); this.variablesHash = new HashMap<Node, Integer>(); for (int i = 0; i < variables.size(); i++) { variablesHash.put(variables.get(i), i); } }
public FindOneFactorClustersWithCausalIndicators( ICovarianceMatrix cov, TestType testType, double alpha) { this.variables = cov.getVariables(); this.test = new ContinuousTetradTest(cov, testType, alpha); this.indTest = new IndTestFisherZ(cov, alpha); this.alpha = alpha; this.testType = testType; deltaTest = new DeltaTetradTest(cov); this.dataModel = cov; this.cov = cov; }
private void setCovMatrix(ICovarianceMatrix covarianceMatrix) { this.covariances = covarianceMatrix; this.variables = covarianceMatrix.getVariables(); this.sampleSize = covarianceMatrix.getSampleSize(); }