use of edu.cmu.tetrad.graph.Triple in project tetrad by cmu-phil.
the class JsonUtils method parseJSONArrayToTetradTriple.
public static Triple parseJSONArrayToTetradTriple(JSONObject jObj) {
Node x = parseJSONObjectToTetradNode(jObj.getJSONObject("x"));
Node y = parseJSONObjectToTetradNode(jObj.getJSONObject("y"));
Node z = parseJSONObjectToTetradNode(jObj.getJSONObject("z"));
return new Triple(x, y, z);
}
Aggregations