aimsdata  5.0.5
Neuroimaging data handling
romberg.h File Reference

Go to the source code of this file.

Functions

Romberg's numerical integration.

This algorithm returns the true value for polynomial functions using an adaptive trapeziodal integration.

void AimsTrapezeIntegration (float(*func)(float), float a, float b, int n, float *s)
 
float AimsRombergIntegration (float(*func)(float), float a, float b, float eps=1e-6, int jmax=20, int k=5)
 

Function Documentation

◆ AimsRombergIntegration()

float AimsRombergIntegration ( float(*)(float)  func,
float  a,
float  b,
float  eps = 1e-6,
int  jmax = 20,
int  k = 5 
)

◆ AimsTrapezeIntegration()

void AimsTrapezeIntegration ( float(*)(float)  func,
float  a,
float  b,
int  n,
float *  s 
)