public IndependenceTest getIndependenceTest() { Object dataModel = getDataModel(); if (dataModel == null) { dataModel = getSourceGraph(); } SearchParams params = getParams(); IndTestType testType; if (getParams() instanceof BasicSearchParams) { BasicSearchParams _params = (BasicSearchParams) params; testType = _params.getIndTestType(); } else { FciGesSearchParams _params = (FciGesSearchParams) params; testType = _params.getIndTestType(); } return new IndTestChooser().getTest(dataModel, params, testType); }
/** * Generates a simple exemplar of this class to test serialization. * * @see edu.cmu.TestSerialization * @see edu.cmu.tetradapp.util.TetradSerializableUtils */ public static TFciGesRunner serializableInstance() { return new TFciGesRunner(Dag.serializableInstance(), FciGesSearchParams.serializableInstance()); }