Logo ROOT   6.14/05
Reference Guide
QuantFuncMathMore.cxx
Go to the documentation of this file.
1 // @(#)root/mathmore:$Id$
2 // Authors: L. Moneta, A. Zsenei 08/2005
3 
4 #include "gsl/gsl_cdf.h"
5 
6 
7 namespace ROOT {
8 namespace Math {
9 
10 
11 
12  double tdistribution_quantile_c(double z, double r) {
13 
14  return gsl_cdf_tdist_Qinv(z, r);
15 
16  }
17 
18 
19 
20  double tdistribution_quantile(double z, double r) {
21 
22  return gsl_cdf_tdist_Pinv(z, r);
23 
24  }
25 
26 } // namespace Math
27 
28 namespace MathMore {
29  // re-impelment some function already existing in MathCore (defined in ROOT::Math namespace)
30 
31  double chisquared_quantile(double z, double r) {
32 
33  return gsl_cdf_chisq_Pinv(z, r);
34 
35  }
36 
37 
38  double gamma_quantile(double z, double alpha, double theta) {
39 
40  return gsl_cdf_gamma_Pinv(z, alpha, theta);
41 
42  }
43 
44 } // namespace MathMore
45 
46 } // namespace ROOT
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
ROOT::R::TRInterface & r
Definition: Object.C:4
double tdistribution_quantile(double z, double r)
Inverse ( ) of the cumulative distribution function of the lower tail of Student's t-distribution (td...
Namespace for new Math classes and functions.
you should not use this method at all Int_t Int_t z
Definition: TRolke.cxx:630
double gamma_quantile(double z, double alpha, double theta)
Inverse ( ) of the cumulative distribution function of the lower tail of the gamma distribution (gamm...
double chisquared_quantile(double z, double r)
Inverse ( ) of the cumulative distribution function of the lower tail of the distribution with degr...
double tdistribution_quantile_c(double z, double r)
Inverse ( ) of the cumulative distribution function of the upper tail of Student's t-distribution (td...