@ Override public List < double [ ] > generate ( int count ) { ArrayList < double [ ] > result = new ArrayList <> ( count ) ; while ( result . size ( ) < count ) { double [ ] d = new double [ dim ] ; for ( int i = 0 ; i < dim ; i ++ ) { d [ i ] = axes . get ( i ) . nextRandom ( ) ; } if ( trans != null ) { d = trans . apply ( d ) ; } if ( testClipping ( d ) ) { if ( -- retries < 0 ) { throw new AbortException ( "Maximum retry count in generator exceeded." ) ; } continue ; } result . add ( d ) ; } return result ; }
Generate the given number of additional points .