@ Override public void squishToRange ( double min , double max ) { for ( int i = 0 ; i < getFeatures ( ) . length ( ) ; i ++ ) { double curr = ( double ) getFeatures ( ) . getScalar ( i ) . element ( ) ; if ( curr < min ) getFeatures ( ) . put ( i , Nd4j . scalar ( min ) ) ; else if ( curr > max ) getFeatures ( ) . put ( i , Nd4j . scalar ( max ) ) ; } }
Squeezes input data to a max and a min