code: public static double moment(FlatDataCollection flatDataCollection, int r) {
          double mean = mean(flatDataCollection);
          return moment(flatDataCollection, r, mean);
      }
docs: Calculates Moment R if the mean is not known.
  
  @param flatDataCollection
  @param r
  @return