code: public static double[] rowSds(double[][] data) {
          double[] x = new double[data.length];
  
          for (int i = 0; i < x.length; i++) {
              x[i] = sd(data[i]);
          }
  
          return x;
      }
docs: Returns the row standard deviations for a matrix.