public double [ ] rotate ( double [ ] vector ) { DenseMatrix64F transformed = new DenseMatrix64F ( 1 , vector . length ) ; DenseMatrix64F original = DenseMatrix64F . wrap ( 1 , vector . length , vector ) ; CommonOps . mult ( original , randomMatrix , transformed ) ; return transformed . getData ( ) ; }
Randomly rotates a vector using the random rotation matrix that was created in the constructor .