code: public static float Sum(float[] data) {
          float sum = 0;
          for (int i = 0; i < data.length; i++) {
              sum += data[i];
          }
          return sum;
      }
docs: Sum of the elements.
  
  @param data Data.
  @return Sum(data).