Holds one half of a discretely sampled 1D gaussian distribution. More...
#include <vnl_gaussian_kernel_1d.h>
Public Member Functions | |
vnl_gaussian_kernel_1d (double sigma, double cutoff=0.5/256.0) | |
Construct a sampled 1D gaussian of standard deviation sigma. | |
double | G (double x) const |
int | width () const |
double | operator[] (int i) const |
Protected Attributes | |
vnl_vector< double > | vec_ |
double | inscale_ |
Holds one half of a discretely sampled 1D gaussian distribution.
Definition at line 22 of file vnl_gaussian_kernel_1d.h.
vnl_gaussian_kernel_1d::vnl_gaussian_kernel_1d | ( | double | sigma, |
double | cutoff = 0.5/256.0 |
||
) |
Construct a sampled 1D gaussian of standard deviation sigma.
The vector is normalized so that its sum is 0.5.
Definition at line 27 of file vnl_gaussian_kernel_1d.cxx.
double vnl_gaussian_kernel_1d::G | ( | double | x | ) | const |
Definition at line 41 of file vnl_gaussian_kernel_1d.cxx.
double vnl_gaussian_kernel_1d::operator[] | ( | int | i | ) | const [inline] |
Definition at line 31 of file vnl_gaussian_kernel_1d.h.
int vnl_gaussian_kernel_1d::width | ( | ) | const [inline] |
Definition at line 30 of file vnl_gaussian_kernel_1d.h.
double vnl_gaussian_kernel_1d::inscale_ [protected] |
Definition at line 36 of file vnl_gaussian_kernel_1d.h.
vnl_vector<double> vnl_gaussian_kernel_1d::vec_ [protected] |
Definition at line 35 of file vnl_gaussian_kernel_1d.h.