Search in sources :

Example 1 with VerticalIntDataBox

use of edu.cmu.tetrad.data.VerticalIntDataBox in project tetrad by cmu-phil.

the class DataConvertUtils method toVerticalDiscreteDataModel.

public static DataModel toVerticalDiscreteDataModel(VerticalDiscreteTabularDataset dataset) {
    DataBox dataBox = new VerticalIntDataBox(dataset.getData());
    List<Node> variables = toNodes(dataset.getVariableInfos());
    return new BoxDataSet(dataBox, variables);
}
Also used : Node(edu.cmu.tetrad.graph.Node) BoxDataSet(edu.cmu.tetrad.data.BoxDataSet) DoubleDataBox(edu.cmu.tetrad.data.DoubleDataBox) MixedDataBox(edu.cmu.tetrad.data.MixedDataBox) DataBox(edu.cmu.tetrad.data.DataBox) VerticalIntDataBox(edu.cmu.tetrad.data.VerticalIntDataBox) VerticalIntDataBox(edu.cmu.tetrad.data.VerticalIntDataBox)

Aggregations

BoxDataSet (edu.cmu.tetrad.data.BoxDataSet)1 DataBox (edu.cmu.tetrad.data.DataBox)1 DoubleDataBox (edu.cmu.tetrad.data.DoubleDataBox)1 MixedDataBox (edu.cmu.tetrad.data.MixedDataBox)1 VerticalIntDataBox (edu.cmu.tetrad.data.VerticalIntDataBox)1 Node (edu.cmu.tetrad.graph.Node)1