public FgsOld(DataSet dataSet){
  if (verbose) {
    out.println("GES constructor");
  }
  if (dataSet.isDiscrete()) {
    setScore(new BDeuScore(dataSet));
  }
 else {
    SemBicScore fgsScore=new SemBicScore(new CovarianceMatrixOnTheFly(dataSet));
    setScore(fgsScore);
  }
  this.graph=new EdgeListGraphSingleConnections(getVariables());
  if (verbose) {
    out.println("GES constructor done");
  }
}

public FgsOld ( DataSet dataSet ) { if ( verbose ) { out . println ( "GES constructor" ) ; } if ( dataSet . isDiscrete ( ) ) { setScore ( new BDeuScore ( dataSet ) ) ; } else { SemBicScore fgsScore = new SemBicScore ( new CovarianceMatrixOnTheFly ( dataSet ) ) ; setScore ( fgsScore ) ; } this . graph = new EdgeListGraphSingleConnections ( getVariables ( ) ) ; if ( verbose ) { out . println ( "GES constructor done" ) ; } }
the data set must either be all continuous or all discrete .
