public static double cdf(double x,double location,double shape){
  return Math.atan2(x - location,shape) / Math.PI + .5;
}

public static double cdf ( double x , double location , double shape ) { return Math . atan2 ( x - location , shape ) / Math . PI + .5 ; }
pdf function , static version .
