code: public static double max(FlatDataCollection flatDataCollection) {
          double max=Double.NEGATIVE_INFINITY;
              
          Iterator<Double> it = flatDataCollection.iteratorDouble();
          while(it.hasNext()) {
              Double v = it.next();
              if(v != null && max < v) {
                  max=v;
              }
          }          
          
          return max;
      }
docs: Calculates Maximum.
  
  @param flatDataCollection
  @return