ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 29b6cbd was
230f479,
checked in by Mathieu Doucet <doucetm@…>, 11 years ago
|
Rename C source dir for models (minor updates)
|
-
Property mode set to
100644
|
File size:
1008 bytes
|
Line | |
---|
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.8: June, 2000 |
---|
50 | Copyright 1984, 1987, 1995, 2000 by Stephen L. Moshier |
---|
51 | */ |
---|
52 | #include "mconf.h" |
---|
53 | #ifdef ANSIPROT |
---|
54 | extern double incbet ( double, double, double ); |
---|
55 | #else |
---|
56 | double incbet(); |
---|
57 | #endif |
---|
58 | |
---|
59 | double btdtr( a, b, x ) |
---|
60 | double a, b, x; |
---|
61 | { |
---|
62 | |
---|
63 | return( incbet( a, b, x ) ); |
---|
64 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.