Geant4  10.02.p02
nf_GnG_adaptiveQuadrature.cc File Reference
#include <float.h>
#include "nf_integration.h"
+ Include dependency graph for nf_GnG_adaptiveQuadrature.cc:

Go to the source code of this file.

Classes

struct  nf_GnG_adaptiveQuadrature_info_s
 

Typedefs

typedef struct
nf_GnG_adaptiveQuadrature_info_s 
nf_GnG_adaptiveQuadrature_info
 

Functions

static double nf_GnG_adaptiveQuadrature2 (nf_GnG_adaptiveQuadrature_info *adaptiveQuadrature_info, double currentIntrgral, double x1, double x2, int depth)
 
nfu_status nf_GnG_adaptiveQuadrature (nf_GnG_adaptiveQuadrature_callback quadratureFunction, nf_Legendre_GaussianQuadrature_callback integrandFunction, void *argList, double x1, double x2, int maxDepth, double tolerance, double *integral, long *evaluations)
 

Variables

static double initialPoints [] = { 0.2311, 0.4860, 0.6068, 0.8913, 0.9501 }
 
static int numberOfInitialPoints = sizeof( initialPoints ) / sizeof( initialPoints[0] )
 

Typedef Documentation

Function Documentation

nfu_status nf_GnG_adaptiveQuadrature ( nf_GnG_adaptiveQuadrature_callback  quadratureFunction,
nf_Legendre_GaussianQuadrature_callback  integrandFunction,
void *  argList,
double  x1,
double  x2,
int  maxDepth,
double  tolerance,
double *  integral,
long *  evaluations 
)

Definition at line 31 of file nf_GnG_adaptiveQuadrature.cc.

References DBL_EPSILON, nf_GnG_adaptiveQuadrature_info_s::estimate, nf_GnG_adaptiveQuadrature_info_s::evaluations, nf_GnG_adaptiveQuadrature2(), numberOfInitialPoints, and nf_GnG_adaptiveQuadrature_info_s::status.

Referenced by ptwXY_integrateWithFunction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static double nf_GnG_adaptiveQuadrature2 ( nf_GnG_adaptiveQuadrature_info adaptiveQuadrature_info,
double  currentIntrgral,
double  x1,
double  x2,
int  depth 
)
static

Variable Documentation

double initialPoints[] = { 0.2311, 0.4860, 0.6068, 0.8913, 0.9501 }
static

Definition at line 24 of file nf_GnG_adaptiveQuadrature.cc.

int numberOfInitialPoints = sizeof( initialPoints ) / sizeof( initialPoints[0] )
static

Definition at line 25 of file nf_GnG_adaptiveQuadrature.cc.

Referenced by nf_GnG_adaptiveQuadrature().