public static double [ ] rowStdDevs ( RealMatrix matrix ) { double [ ] retval = new double [ matrix . getRowDimension ( ) ] ; for ( int i = 0 ; i < retval . length ; i ++ ) { retval [ i ] = new DescriptiveStatistics ( matrix . getRow ( i ) ) . getStandardDeviation ( ) ; } return retval ; }
Returns the standard deviations of rows .