public DataSet simulateData(int sampleSize,long seed,boolean latentDataSaved){
  RandomUtil random=RandomUtil.getInstance();
  long _seed=random.getSeed();
  random.setSeed(seed);
  DataSet dataSet=simulateData(sampleSize,latentDataSaved);
  random.revertSeed(_seed);
  return dataSet;
}

public DataSet simulateData ( int sampleSize , long seed , boolean latentDataSaved ) { RandomUtil random = RandomUtil . getInstance ( ) ; long _seed = random . getSeed ( ) ; random . setSeed ( seed ) ; DataSet dataSet = simulateData ( sampleSize , latentDataSaved ) ; random . revertSeed ( _seed ) ; return dataSet ; }
simulates a sample with the given sample size .
