public double [ ] normOne ( double [ ] data ) { double [ ] res = new double [ data . length ] ; double max = max ( data ) ; for ( int i = 0 ; i < data . length ; i ++ ) { res [ i ] = data [ i ] / max ; } return res ; }
Normalizes data in interval 0 - 1 .