11 #ifndef CLPROBDIST_CONTINUOUSDIST_H
12 #define CLPROBDIST_CONTINUOUSDIST_H
14 #if defined(__APPLE__) || defined(__MACOSX)
15 #include <OpenCL/cl.h>
37 typedef struct _clprobdistContinuousDist{
42 } clprobdistContinuous;
51 cl_int clprobdistContinuousGetDecPrec(clprobdistContinuous* distObj, clprobdistStatus* err);
53 cl_double clprobdistContinuousGetXinf(clprobdistContinuous* distObj, clprobdistStatus* err);
55 cl_double clprobdistContinuousGetXsup(clprobdistContinuous* distObj, clprobdistStatus* err);
57 clprobdistStatus clprobdistContinuousSetXinf(cl_double xa, clprobdistContinuous* distObj);
59 clprobdistStatus clprobdistContinuousSetXsup(cl_double xb, clprobdistContinuous* distObj);
66 cl_double clprobdistContinuousCDF(cl_double x, clprobdistStatus* err);
68 clprobdistStatus findInterval(cl_double u, cl_double* iv, clprobdistContinuous* distObj, clprobdistStatus* err);
70 cl_double clprobdistContinuousDensity(cl_double x, clprobdistStatus* err);
72 cl_double clprobdistContinuousGetMean(clprobdistStatus* err);
74 cl_double clprobdistContinuousGetVariance(clprobdistStatus* err);
76 cl_double clprobdistContinuousGetStdDeviation(clprobdistStatus* err);
81 cl_double clprobdistContinuousComplCDF(cl_double x, clprobdistStatus* err);
83 cl_double clprobdistContinuousInverseBrent(cl_double a, cl_double b, cl_double u, cl_double tol, clprobdistContinuous* distObj, clprobdistStatus* err);
85 cl_double clprobdistContinuousInverseBisection(cl_double u, clprobdistContinuous* distObj, clprobdistStatus* err);
87 cl_double clprobdistContinuousInverseCDF(cl_double u, clprobdistContinuous* distObj, clprobdistStatus* err);