STK++ 0.9.13
STK_Funct_betaRatio.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------*/
2/* Copyright (C) 2004-2016 Serge Iovleff, Université Lille 1, Inria
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this program; if not, write to the
16 Free Software Foundation, Inc.,
17 59 Temple Place,
18 Suite 330,
19 Boston, MA 02111-1307
20 USA
21
22 Contact : S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
23*/
24
25/*
26 * Project: Analysis
27 * Purpose: Declaration of functions around the beta function ratio
28 * Author: Serge Iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29 **/
30
35#ifndef STK_FUNCT_BETARATIO_H
36#define STK_FUNCT_BETARATIO_H
37
38#include <STKernel.h>
39
40namespace STK
41{
42
43namespace Funct
44{
45#ifndef IS_RTKPP_LIBRARY
50Real betaRatio_sr( Real const& a, Real const& b, Real x
51 , bool xm1, bool lower_tail
52 );
57Real betaRatio_up( Real const& a, Real const& b, Real const& x
58 , bool xm1, bool lower_tail
59 );
64Real betaRatio_cf( Real const& a, Real const& b, Real x, bool xm1
65 , bool lower_tail = true
66 );
71Real betaRatio_se( Real const& a, Real const& b, Real const& x
72 , bool xm1, bool lower_tail
73 );
74
79Real betaRatio_ae( Real const& a, Real const& b, Real const& x
80 , bool xm1, bool lower_tail
81 );
94Real betaRatio( Real const& a, Real const& b, Real const& x, bool lower_tail = true);
95Real betaRatio_raw( Real const& a, Real const& b, Real const& x, bool lower_tail);
96
97#else
98
99inline Real betaRatio( Real const& a, Real const& b, Real const& x, bool lower_tail = true)
100{ return Rf_pbeta(x,a,b,lower_tail,false);}
101
102#endif
103
104} // namespace Funct
105
106} // namespace STK
107
108#endif /*STK_FUNCT_BETARATIO_H*/
This file include all the header files of the project STKernel.
Real betaRatio_se(Real const &a, Real const &b, Real const &x, bool xm1, bool lower_tail)
Compute the incomplete beta function ratio I_x(a,b) using the serie expansion method.
Real betaRatio_ae(Real const &a, Real const &b, Real const &x, bool xm1, bool lower_tail)
Compute the incomplete beta function ratio I_x(a,b) using the asymptotic expansion method.
Real betaRatio(Real const &a, Real const &b, Real const &x, bool lower_tail=true)
Compute the incomplete beta function ratio Compute the beta ratio function.
Real betaRatio_cf(Real const &a, Real const &b, Real x, bool xm1, bool lower_tail=true)
Compute the incomplete beta function ratio using the continued fraction method.
Real betaRatio_up(Real const &a, Real const &b, Real const &x, bool xm1, bool lower_tail)
Compute the incomplete beta function ratio I_x(a,b) using its recurrence formula and its asymptotic e...
Real betaRatio_sr(Real const &a, Real const &b, Real x, bool xm1, bool lower_tail)
Compute the incomplete beta function ratio I_x(a,b) using its series representation.
double Real
STK fundamental type of Real values.
Real betaRatio_raw(Real const &a, Real const &b, Real const &x, bool lower_tail)
The namespace STK is the main domain space of the Statistical ToolKit project.