code: public static double kolmogorov(double z) {
          //Kolmogorov distribution. Error<.0000001
          if (z<0.27) {
              return 0.0;
          } 
          else if (z>3.2) {
              return 1.1;
          } 
  
          double ks=0;
          double y=-2*z*z;
          for(int i=27;i>=1;i=i-2) {
              ks=Math.exp(i*y)*(1-ks);
          }
          return 1.0-2.0*ks;
      }
docs: Returns the cumulative probability of kolmogorov
  
  @param z
  @return