use of edu.cmu.tetrad.data.DataBox in project tetrad by cmu-phil.
the class DataConvertUtils method toContinuousDataModel.
public static DataModel toContinuousDataModel(ContinuousTabularDataset dataset) {
DataBox dataBox = new DoubleDataBox(dataset.getData());
List<Node> variables = toNodes(dataset.getVariables());
return new BoxDataSet(dataBox, variables);
}
use of edu.cmu.tetrad.data.DataBox 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);
}
Aggregations