STK++ 1.0
STK_Funct_betaRatio.cpp File Reference

In this file we implement functions around the Beta ratio function. More...

#include "../include/STK_Funct_betaRatio.h"
#include "../include/STK_Funct_gammaRatio.h"
#include "../include/STK_ISerie.h"
#include "../include/STK_Algo.h"
#include "../include/STK_Funct_gamma.h"
#include "../include/STK_Funct_util.h"
#include "../include/STK_Funct_raw.h"
#include "../../Arrays/include/STK_Vector.h"
Include dependency graph for STK_Funct_betaRatio.cpp:

Go to the source code of this file.

Namespaces

namespace  STK
 

STK means the Statistical ToolKit.


namespace  STK::Funct
 

The namespace Funct enclose all usual and special functions.


Defines

#define d1(z)   (0.5)
#define d2(z)   (z/8. - 1./20.)
#define d3(z)   (z*(z/48.-1./40.)+1./105.)
#define d4(z)   (z*(z*(z/384.-1./160.)+101./16800.)-3./1400.)
#define d5(z)
#define d6(z)
#define d7(z)
#define d8(z)

Functions

static Real STK::Funct::betaRatio_cf (Real const &a, Real const &b, Real const &x, bool lower_tail=true, Integer const &iterMax=1000)
 Compute the continued fraction of the beta function.
static Real STK::Funct::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 its asymptotic expansion.
static Real STK::Funct::serie_up (Real const &s, Real const &a, Real const &x, Integer const &n)
 Compute the recurrence formula of the incomplete beta ratio function.
static Real STK::Funct::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 expansion.
static Real STK::Funct::betaRatio_sr (Real const &a, Real const &b, Real const &x, bool lower_tail)
 Compute the incomplete beta function ratio I_x(a,b) using its series representation.
static Real STK::Funct::coefs_odd_se (Real const &std, Real const &qmp, Vector &A)
 compute the odd coefs of the beta Ratio function serie expansion.
static Real STK::Funct::coefs_even_se (Real const &std, Real const &qmp, Vector &A)
 compute the even coefs of the beta Ratio function serie expansion.
static Real STK::Funct::betaRatio_se (Real const &a, Real const &b, Real const &x, bool xm1, bool lower_tail, Integer const &iterMax=20)
 Compute the incomplete beta function ratio I_x(a,b) using its serie expansion.
Real STK::Funct::betaRatio (Real const &a, Real const &b, Real const &x, bool lower_tail=true)
 Compute the incomplete beta function ratio.

Detailed Description

In this file we implement functions around the Beta ratio function.

Definition in file STK_Funct_betaRatio.cpp.


Define Documentation

#define d1 (   z)    (0.5)

Definition at line 221 of file STK_Funct_betaRatio.cpp.

Referenced by STK::Svd::diag().

#define d2 (   z)    (z/8. - 1./20.)

Definition at line 222 of file STK_Funct_betaRatio.cpp.

Referenced by STK::Funct::betaRatio_ae(), and STK::Svd::diag().

#define d3 (   z)    (z*(z/48.-1./40.)+1./105.)

Definition at line 223 of file STK_Funct_betaRatio.cpp.

Referenced by STK::Funct::betaRatio_ae().

#define d4 (   z)    (z*(z*(z/384.-1./160.)+101./16800.)-3./1400.)

Definition at line 224 of file STK_Funct_betaRatio.cpp.

Referenced by STK::Funct::betaRatio_ae().

#define d5 (   z)
Value:
(z*(z*(z*(z/3840.-1./960.)+61./33600.)-13./8400.) \
              +1./1925.)

Definition at line 225 of file STK_Funct_betaRatio.cpp.

Referenced by STK::Funct::betaRatio_ae().

#define d6 (   z)
Value:
(z*(z*(z*(z*(z/46080.-1./7680.)+143./403200.) \
              -59./112000.)+7999./19404000.)-691./5255250.)

Definition at line 227 of file STK_Funct_betaRatio.cpp.

Referenced by STK::Funct::betaRatio_ae().

#define d7 (   z)
Value:
(z*(z*(z*(z*(z*(z/645120.-1./76800.)+41./806400.) \
              -11./96000.)+5941./38808000.)-2357./21021000.)+6./175175.)

Definition at line 229 of file STK_Funct_betaRatio.cpp.

Referenced by STK::Funct::betaRatio_ae().

#define d8 (   z)
Value:
(z*(z*(z*(z*(z*(z*(z/10321920.-1./921600.)+37./6451200.) \
              -73./4032000.)+224137./6209280000.)-449747./10090080000.) \
              +52037./1681680000.)-10851./1191190000.)

Definition at line 231 of file STK_Funct_betaRatio.cpp.

Referenced by STK::Funct::betaRatio_ae().