public MyVector normalize ( ) { double vmodule = module ( ) ; double [ ] associatedVector = new double [ vector . length ] ; for ( int i = 0 ; i < vector . length ; i ++ ) { associatedVector [ i ] = ( 1 / vmodule ) * vector [ i ] ; } return new MyVector ( associatedVector ) ; }
Calculates the associated normalized Vector of this Vector