public static double WEIBULL(double x, double shape, double scale, bool state)
 {
     if (state == false)
     {
         return(Weibull.PDF(shape, scale, x));
     }
     return(Weibull.CDF(shape, scale, x));
 }