BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/ProbTools/include/ProbTools/NumRecipes.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: NumRecipes.h,v 1.1.1.1 2005/04/21 01:17:17 zhangy Exp $
4//
5// Description:
6// A collection of commonly used algorithms from "Numerical Recipes"
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Author List:
12// Bob Jacobsen, Ed Iskander
13//
14// Copyright Information:
15// Copyright (C) 1996
16//
17//------------------------------------------------------------------------
18
19#ifndef NUMRECIPES_HH
20#define NUMRECIPES_HH
21
22#define NUMREC_ITMAX 100
23#define NUMREC_EPS 3.0e-7
24
25//-----------------
26// BaBar Headers --
27//-----------------
28class NumRecipes {
29public:
30 // log of gamma function
31 static double gammln( double x );
32
33 static double gammq( double a, double x );
34
35 static double gammp( double a, double x );
36
37 static void gcf( double* gammcf, double a, double x, double* gln );
38
39 static void gser( double* gamser, double a, double x, double* gln );
40
41private:
42 static void recipesErr( const char* c );
43};
44
45#endif
static double gammq(double a, double x)
static void gcf(double *gammcf, double a, double x, double *gln)
static double gammp(double a, double x)
static double gammln(double x)
static void gser(double *gamser, double a, double x, double *gln)