code: public static double getPvalue(FlatDataCollection flatDataCollection, double median) {
          int n=flatDataCollection.size();
          if(n<=0) {
              throw new IllegalArgumentException("The provided collection can't be empty.");
          }
          
          int Tplus=0;
          Iterator<Double> it = flatDataCollection.iteratorDouble();
          while(it.hasNext()) {
              double v = it.next();
              if(Math.abs(v-median) < 0.0000001) {
                  continue; //don't count it at all
              }
              if(v>median) {
                  ++Tplus;
              }
          }
  
  
          double pvalue= scoreToPvalue(Tplus, n);
  
          return pvalue;
      }
docs: Calculates the p-value of null Hypothesis.
  
  @param flatDataCollection
  @param median
  @return