Xmipp
v3.23.11-Nereus
|
#include <numerical_tools.h>
Public Member Functions | |
void | initialize (double xmax, int N, bool normalize=true) |
double | getValue (double x) const |
Gaussian interpolator
This class helps to perform a quick evaluation of the N(0,1) Gaussian. 1/sqrt(2*PI)*exp(-x^2)
Definition at line 104 of file numerical_tools.h.
|
inline |
void GaussianInterpolator::initialize | ( | double | xmax, |
int | N, | ||
bool | normalize = true |
||
) |
Constructor. xmax is the maximum value considered by the interpolator. N is the number of samples between 0 and xmax. If normalize is set to true, then the factor 1/sqrt(2*PI) is introduced.
Definition at line 65 of file numerical_tools.cpp.