Search in sources :

Example 1 with IndTestTimeSeries

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

the class TestIndTestTimeSeries method setUp.

private void setUp() {
    List<Node> vars = new ArrayList<>();
    for (String varName : varNames) {
        vars.add(new ContinuousVariable(varName));
    }
    TetradMatrix _data = new TetradMatrix(data.length, data[0].length);
    for (int i = 0; i < data.length; i++) {
        for (int j = 0; j < data[0].length; j++) {
            _data.set(i, j, data[i][j]);
        }
    }
    test = new IndTestTimeSeries(_data, vars);
}
Also used : ContinuousVariable(edu.cmu.tetrad.data.ContinuousVariable) IndTestTimeSeries(edu.cmu.tetrad.search.IndTestTimeSeries) Node(edu.cmu.tetrad.graph.Node) ArrayList(java.util.ArrayList) TetradMatrix(edu.cmu.tetrad.util.TetradMatrix)

Aggregations

ContinuousVariable (edu.cmu.tetrad.data.ContinuousVariable)1 Node (edu.cmu.tetrad.graph.Node)1 IndTestTimeSeries (edu.cmu.tetrad.search.IndTestTimeSeries)1 TetradMatrix (edu.cmu.tetrad.util.TetradMatrix)1 ArrayList (java.util.ArrayList)1