code: public double mean() {
          double total = 0;
  
          final int N = getNumElements();
          for( int i = 0; i < N; i++ ) {
              total += get(i);
          }
  
          return total/N;
      }
docs: Computes the mean or average of all the elements.
  
  @return mean