code: public static double cdf(double val, double loc, double scale) {
      val = (val - loc) / scale;
      return 1. / (1. + FastMath.exp(-val));
    }
docs: Cumulative density function.
  
  @param val Value
  @param loc Location
  @param scale Scale
  @return CDF