Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Static Private Member Functions | List of all members
vnl_adaptsimpson_integral Class Reference

#include <vnl_adaptsimpson_integral.h>

Inheritance diagram for vnl_adaptsimpson_integral:
Inheritance graph
[legend]

Public Member Functions

 vnl_adaptsimpson_integral (int depth=32)
 
double integral (vnl_integrant_fnct *f, double a, double b, double accuracy)
 a and b are integral limits respectively. More...
 
void set_fnct (vnl_integrant_fnct *f)
 

Protected Member Functions

double adaptivesimpson (double(*f)(double *), double a, double b, double eps, int level, int level_max)
 real computation. More...
 

Protected Attributes

int depth_
 maximum recursion depth. More...
 

Static Protected Attributes

static vnl_integrant_fnctpfnct_ = nullptr
 

Static Private Member Functions

static double int_fnct_ (double *x)
 used to wrap the function class to an ordinary function. More...
 

Detailed Description

Definition at line 11 of file vnl_adaptsimpson_integral.h.

Constructor & Destructor Documentation

◆ vnl_adaptsimpson_integral()

vnl_adaptsimpson_integral::vnl_adaptsimpson_integral ( int  depth = 32)
inline

Definition at line 26 of file vnl_adaptsimpson_integral.h.

Member Function Documentation

◆ adaptivesimpson()

double vnl_adaptsimpson_integral::adaptivesimpson ( double(*)(double *)  f,
double  a,
double  b,
double  eps,
int  level,
int  level_max 
)
protected

real computation.

Definition at line 19 of file vnl_adaptsimpson_integral.cxx.

◆ int_fnct_()

double vnl_adaptsimpson_integral::int_fnct_ ( double *  x)
staticprivate

used to wrap the function class to an ordinary function.

Definition at line 5 of file vnl_adaptsimpson_integral.cxx.

◆ integral()

double vnl_adaptsimpson_integral::integral ( vnl_integrant_fnct f,
double  a,
double  b,
double  accuracy 
)

a and b are integral limits respectively.

n is the number of intervals used in integral. accuracy is the accuracy you want to achieve. Normally accuracy > 1e-11)

Definition at line 10 of file vnl_adaptsimpson_integral.cxx.

◆ set_fnct()

void vnl_definite_integral::set_fnct ( vnl_integrant_fnct f)
inlineinherited

Definition at line 23 of file vnl_definite_integral.h.

Member Data Documentation

◆ depth_

int vnl_adaptsimpson_integral::depth_
protected

maximum recursion depth.

Definition at line 20 of file vnl_adaptsimpson_integral.h.

◆ pfnct_

vnl_integrant_fnct * vnl_definite_integral::pfnct_ = nullptr
staticprotectedinherited

Definition at line 18 of file vnl_definite_integral.h.


The documentation for this class was generated from the following files: