public SimpleDataSet generateData ( int samples ) { int totalClasses = 1 ; for ( int d : dimensions ) totalClasses *= ; catDataInfo = new CategoricalData [ ] { new CategoricalData ( totalClasses ) } ; List < DataPoint > dataPoints = new ArrayList < DataPoint > ( totalClasses * samples ) ; int [ ] curClassPointer = new int [ 1 ] ; for ( int i = 0 ; i < dimensions [ 0 ] ; i ++ ) { int [ ] curDim = new int [ dimensions . length ] ; curDim [ 0 ] = i ; addSamples ( curClassPointer , 0 , samples , dataPoints , curDim ) ; } return new SimpleDataSet ( dataPoints ) ; }
Generates a new data set .