public static int[] createBootstrappingMapping(ExampleSet exampleSet,int size,Random random){
  int[] mapping=new int[size];
  for (int i=0; i < mapping.length; i++) {
    mapping[i]=random.nextInt(exampleSet.size());
  }
  return mapping;
}

public static int [ ] createBootstrappingMapping ( ExampleSet exampleSet , int size , Random random ) { int [ ] mapping = new int [ size ] ; for ( int i = 0 ; i < mapping . length ; i ++ ) { mapping [ i ] = random . nextInt ( exampleSet . size ( ) ) ; } return mapping ; }
creates a new mapping for the given example set by sampling with replacement .
