2 * Documentation for those functions where inline documentation is
3 * not appropriate, for example because the source code was imported
7 #include <gnumeric-config.h>
9 /* ------------------------------------------------------------------------- */
15 * Returns: log(1+@x)-@x with less rounding error than the naive formula,
16 * especially for small values of @x.
19 /* ------------------------------------------------------------------------- */
24 * @mu: mean of the distribution
25 * @sigma: standard deviation of the distribution
26 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
27 * @log_p: if %TRUE, log of the result will be returned instead
29 * Returns: cumulative density of the normal distribution.
35 * @mu: mean of the distribution
36 * @sigma: standard deviation of the distribution
37 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
38 * @log_p: if %TRUE, @p is given as log probability
40 * Returns: the observation with cumulative probability @p for the
41 * normal distribution.
44 /* ------------------------------------------------------------------------- */
49 * @shape: the shape parameter of the distribution
50 * @scale: the scale parameter of the distribution
51 * @give_log: if %TRUE, log of the result will be returned instead
53 * Returns: density of the gamma distribution.
59 * @shape: the shape parameter of the distribution
60 * @scale: the scale parameter of the distribution
61 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
62 * @log_p: if %TRUE, log of the result will be returned instead
64 * Returns: cumulative density of the gamma distribution.
70 * @shape: the shape parameter of the distribution
71 * @scale: the scale parameter of the distribution
72 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
73 * @log_p: if %TRUE, @p is given as log probability
75 * Returns: the observation with cumulative probability @p for the
79 /* ------------------------------------------------------------------------- */
84 * @a: the first shape parameter of the distribution
85 * @b: the second scale parameter of the distribution
86 * @give_log: if %TRUE, log of the result will be returned instead
88 * Returns: density of the beta distribution.
94 * @a: the first shape parameter of the distribution
95 * @b: the second scale parameter of the distribution
96 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
97 * @log_p: if %TRUE, log of the result will be returned instead
99 * Returns: cumulative density of the beta distribution.
105 * @a: the first shape parameter of the distribution
106 * @b: the second scale parameter of the distribution
107 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
108 * @log_p: if %TRUE, @p is given as log probability
110 * Returns: the observation with cumulative probability @p for the
114 /* ------------------------------------------------------------------------- */
119 * @n: the number of degrees of freedom of the distribution
120 * @give_log: if %TRUE, log of the result will be returned instead
122 * Returns: density of the Student t distribution.
128 * @n: the number of degrees of freedom of the distribution
129 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
130 * @log_p: if %TRUE, log of the result will be returned instead
132 * Returns: cumulative density of the Student t distribution.
138 * @n: the number of degrees of freedom of the distribution
139 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
140 * @log_p: if %TRUE, @p is given as log probability
142 * Returns: the observation with cumulative probability @p for the
143 * Student t distribution.
146 /* ------------------------------------------------------------------------- */
151 * @n1: the first number of degrees of freedom of the distribution
152 * @n2: the first number of degrees of freedom of the distribution
153 * @give_log: if %TRUE, log of the result will be returned instead
155 * Returns: density of the F distribution.
161 * @n1: the first number of degrees of freedom of the distribution
162 * @n2: the first number of degrees of freedom of the distribution
163 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
164 * @log_p: if %TRUE, log of the result will be returned instead
166 * Returns: cumulative density of the F distribution.
172 * @n1: the first number of degrees of freedom of the distribution
173 * @n2: the first number of degrees of freedom of the distribution
174 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
175 * @log_p: if %TRUE, @p is given as log probability
177 * Returns: the observation with cumulative probability @p for the
181 /* ------------------------------------------------------------------------- */
186 * @psuc: the probability of success in each trial
187 * @give_log: if %TRUE, log of the result will be returned instead
189 * Returns: density of the geometric distribution.
195 * @psuc: the probability of success in each trial
196 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
197 * @log_p: if %TRUE, log of the result will be returned instead
199 * Returns: cumulative density of the geometric distribution.
205 * @psuc: the probability of success in each trial
206 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
207 * @log_p: if %TRUE, @p is given as log probability
209 * Returns: the observation with cumulative probability @p for the
210 * geometric distribution.
213 /* ------------------------------------------------------------------------- */
218 * @df: the number of degrees of freedom of the distribution
219 * @give_log: if %TRUE, log of the result will be returned instead
221 * Returns: density of the 𝜒² distribution.
227 * @df: the number of degrees of freedom of the distribution
228 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
229 * @log_p: if %TRUE, log of the result will be returned instead
231 * Returns: cumulative density of the 𝜒² distribution.
237 * @df: the number of degrees of freedom of the distribution
238 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
239 * @log_p: if %TRUE, @p is given as log probability
241 * Returns: the observation with cumulative probability @p for the
242 * 𝜒² distribution.
245 /* ------------------------------------------------------------------------- */
250 * @shape: the shape parameter of the distribution
251 * @scale: the scale parameter of the distribution
252 * @give_log: if %TRUE, log of the result will be returned instead
254 * Returns: density of the Weibull distribution.
260 * @shape: the shape parameter of the distribution
261 * @scale: the scale parameter of the distribution
262 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
263 * @log_p: if %TRUE, log of the result will be returned instead
265 * Returns: cumulative density of the Weibull distribution.
271 * @shape: the shape parameter of the distribution
272 * @scale: the scale parameter of the distribution
273 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
274 * @log_p: if %TRUE, @p is given as log probability
276 * Returns: the observation with cumulative probability @p for the
277 * Weibull distribution.
280 /* ------------------------------------------------------------------------- */
285 * @lambda: the mean of the distribution
286 * @give_log: if %TRUE, log of the result will be returned instead
288 * Returns: density of the Poisson distribution.
294 * @lambda: the mean of the distribution
295 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
296 * @log_p: if %TRUE, log of the result will be returned instead
298 * Returns: cumulative density of the Poisson distribution.
304 * @lambda: the mean of the distribution
305 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
306 * @log_p: if %TRUE, @p is given as log probability
308 * Returns: the observation with cumulative probability @p for the
309 * Poisson distribution.
312 /* ------------------------------------------------------------------------- */
317 * @scale: the scale parameter of the distribution
318 * @give_log: if %TRUE, log of the result will be returned instead
320 * Returns: density of the exponential distribution.
326 * @scale: the scale parameter of the distribution
327 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
328 * @log_p: if %TRUE, log of the result will be returned instead
330 * Returns: cumulative density of the exponential distribution.
336 * @scale: the scale parameter of the distribution
337 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
338 * @log_p: if %TRUE, @p is given as log probability
340 * Returns: the observation with cumulative probability @p for the
341 * exponential distribution.
344 /* ------------------------------------------------------------------------- */
349 * @n: the number of trials
350 * @psuc: the probability of success in each trial
351 * @give_log: if %TRUE, log of the result will be returned instead
353 * Returns: density of the binomial distribution.
359 * @n: the number of trials
360 * @psuc: the probability of success in each trial
361 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
362 * @log_p: if %TRUE, log of the result will be returned instead
364 * Returns: cumulative density of the binomial distribution.
370 * @n: the number of trials
371 * @psuc: the probability of success in each trial
372 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
373 * @log_p: if %TRUE, @p is given as log probability
375 * Returns: the observation with cumulative probability @p for the
376 * binomial distribution.
379 /* ------------------------------------------------------------------------- */
384 * @n: the number of trials
385 * @psuc: the probability of success in each trial
386 * @give_log: if %TRUE, log of the result will be returned instead
388 * Returns: density of the negative binomial distribution.
394 * @n: the number of trials
395 * @psuc: the probability of success in each trial
396 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
397 * @log_p: if %TRUE, log of the result will be returned instead
399 * Returns: cumulative density of the negative binomial distribution.
405 * @n: the number of trials
406 * @psuc: the probability of success in each trial
407 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
408 * @log_p: if %TRUE, @p is given as log probability
410 * Returns: the observation with cumulative probability @p for the
411 * negative binomial distribution.
414 /* ------------------------------------------------------------------------- */
419 * @r: the number of red balls
420 * @b: the number of black balls
421 * @n: the number of balls drawn
422 * @give_log: if %TRUE, log of the result will be returned instead
424 * Returns: density of the hypergeometric distribution.
430 * @r: the number of red balls
431 * @b: the number of black balls
432 * @n: the number of balls drawn
433 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
434 * @log_p: if %TRUE, log of the result will be returned instead
436 * Returns: cumulative density of the hypergeometric distribution.
442 * @r: the number of red balls
443 * @b: the number of black balls
444 * @n: the number of balls drawn
445 * @lower_tail: if %TRUE, the lower tail of the distribution is considered.
446 * @log_p: if %TRUE, @p is given as log probability
448 * Returns: the observation with cumulative probability @p for the
449 * hypergeometric distribution.
452 /* ------------------------------------------------------------------------- */