gtsam
3rdparty
cephes
cephes
btdtr.c
Go to the documentation of this file.
1
2
/* btdtr.c
3
*
4
* Beta distribution
5
*
6
*
7
*
8
* SYNOPSIS:
9
*
10
* double a, b, x, y, btdtr();
11
*
12
* y = btdtr( a, b, x );
13
*
14
*
15
*
16
* DESCRIPTION:
17
*
18
* Returns the area from zero to x under the beta density
19
* function:
20
*
21
*
22
* x
23
* - -
24
* | (a+b) | | a-1 b-1
25
* P(x) = ---------- | t (1-t) dt
26
* - - | |
27
* | (a) | (b) -
28
* 0
29
*
30
*
31
* This function is identical to the incomplete beta
32
* integral function incbet(a, b, x).
33
*
34
* The complemented function is
35
*
36
* 1 - P(1-x) = incbet( b, a, x );
37
*
38
*
39
* ACCURACY:
40
*
41
* See incbet.c.
42
*
43
*/
44
45
/* btdtr() */
46
47
48
/*
49
* Cephes Math Library Release 2.0: April, 1987
50
* Copyright 1984, 1987, 1995 by Stephen L. Moshier
51
*/
52
53
#include "
mconf.h
"
54
55
double
btdtr
(
double
a
,
double
b
,
double
x
)
56
{
57
58
return
(
incbet
(
a
,
b
,
x
));
59
}
b
Scalar * b
Definition:
benchVecAdd.cpp:17
x
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Definition:
gnuplot_common_settings.hh:12
incbet
double incbet(double aa, double bb, double xx)
Definition:
incbet.c:283
a
ArrayXXi a
Definition:
Array_initializer_list_23_cxx11.cpp:1
mconf.h
btdtr
double btdtr(double a, double b, double x)
Definition:
btdtr.c:55
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:01:56