Search in sources :

Example 1 with ScoredIndTest

use of edu.cmu.tetrad.search.ScoredIndTest in project tetrad by cmu-phil.

the class PositiveCorrScore method getScore.

@Override
public Score getScore(DataModel dataSet, Parameters parameters) {
    this.dataSet = dataSet;
    double alpha = parameters.getDouble("alpha");
    this.alpha = alpha;
    IndTestPositiveCorr test = new IndTestPositiveCorr((DataSet) dataSet, alpha);
    return new ScoredIndTest(test);
}
Also used : ScoredIndTest(edu.cmu.tetrad.search.ScoredIndTest) IndTestPositiveCorr(edu.cmu.tetrad.search.IndTestPositiveCorr)

Example 2 with ScoredIndTest

use of edu.cmu.tetrad.search.ScoredIndTest in project tetrad by cmu-phil.

the class FisherZScore method getScore.

@Override
public Score getScore(DataModel dataSet, Parameters parameters) {
    this.dataSet = dataSet;
    double alpha = parameters.getDouble("alpha");
    this.alpha = alpha;
    IndTestFisherZ test = new IndTestFisherZ((DataSet) dataSet, alpha);
    return new ScoredIndTest(test);
}
Also used : IndTestFisherZ(edu.cmu.tetrad.search.IndTestFisherZ) ScoredIndTest(edu.cmu.tetrad.search.ScoredIndTest)

Aggregations

ScoredIndTest (edu.cmu.tetrad.search.ScoredIndTest)2 IndTestFisherZ (edu.cmu.tetrad.search.IndTestFisherZ)1 IndTestPositiveCorr (edu.cmu.tetrad.search.IndTestPositiveCorr)1