6 /* ------------------------------------------------------------------------- */
8 typedef gnm_float (*GnmPFunc
) (gnm_float x
, const gnm_float shape
[],
9 gboolean lower_tail
, gboolean log_p
);
10 typedef gnm_float (*GnmDPFunc
) (gnm_float x
, const gnm_float shape
[],
13 gnm_float
pfuncinverter (gnm_float p
, const gnm_float shape
[],
14 gboolean lower_tail
, gboolean log_p
,
15 gnm_float xlow
, gnm_float xhigh
, gnm_float x0
,
16 GnmPFunc pfunc
, GnmDPFunc dpfunc_dx
);
17 gnm_float
discpfuncinverter (gnm_float p
, const gnm_float shape
[],
18 gboolean lower_tail
, gboolean log_p
,
19 gnm_float xlow
, gnm_float xhigh
, gnm_float x0
,
22 /* ------------------------------------------------------------------------- */
24 /* The normal distribution. */
25 gnm_float
dnorm (gnm_float x
, gnm_float mu
, gnm_float sigma
, gboolean give_log
);
26 gnm_float
pnorm2 (gnm_float x1
, gnm_float x2
);
28 /* The log-normal distribution. */
29 gnm_float
dlnorm (gnm_float x
, gnm_float logmean
, gnm_float logsd
, gboolean give_log
);
30 gnm_float
plnorm (gnm_float x
, gnm_float logmean
, gnm_float logsd
, gboolean lower_tail
, gboolean log_p
);
31 gnm_float
qlnorm (gnm_float p
, gnm_float logmean
, gnm_float logsd
, gboolean lower_tail
, gboolean log_p
);
33 /* ------------------------------------------------------------------------- */
34 /* The Cauchy distribution */
36 gnm_float
qcauchy (gnm_float p
, gnm_float location
, gnm_float scale
,
37 gboolean lower_tail
, gboolean log_p
);
39 /* ------------------------------------------------------------------------- */
40 /* Hyper-geometrical distribution. */
42 gnm_float
qhyper (gnm_float p
, gnm_float r
, gnm_float b
, gnm_float n
, gboolean lower_tail
, gboolean log_p
);
44 /* ------------------------------------------------------------------------- */
45 /* Rayleigh distribution */
47 gnm_float
drayleigh (gnm_float x
, gnm_float scale
, gboolean give_log
);
48 gnm_float
prayleigh (gnm_float x
, gnm_float scale
, gboolean lower_tail
, gboolean log_p
);
49 gnm_float
qrayleigh (gnm_float p
, gnm_float scale
, gboolean lower_tail
, gboolean log_p
);
51 /* ------------------------------------------------------------------------- */