Public Member Functions | Protected Attributes | List of all members
vnl_gaussian_kernel_1d Class Reference

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. More...
 
double G (double x) const
 
int width () const
 
double operator [] (int i) const
 

Protected Attributes

vnl_vector< double > vec_
 
double inscale_
 

Detailed Description

Holds one half of a discretely sampled 1D gaussian distribution.

Definition at line 20 of file vnl_gaussian_kernel_1d.h.

Constructor & Destructor Documentation

◆ vnl_gaussian_kernel_1d()

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 24 of file vnl_gaussian_kernel_1d.cxx.

Member Function Documentation

◆ G()

double vnl_gaussian_kernel_1d::G ( double  x) const

Definition at line 38 of file vnl_gaussian_kernel_1d.cxx.

◆ operator []()

double vnl_gaussian_kernel_1d::operator [] ( int  i) const
inline

Definition at line 29 of file vnl_gaussian_kernel_1d.h.

◆ width()

int vnl_gaussian_kernel_1d::width ( ) const
inline

Definition at line 28 of file vnl_gaussian_kernel_1d.h.

Member Data Documentation

◆ inscale_

double vnl_gaussian_kernel_1d::inscale_
protected

Definition at line 34 of file vnl_gaussian_kernel_1d.h.

◆ vec_

vnl_vector<double> vnl_gaussian_kernel_1d::vec_
protected

Definition at line 33 of file vnl_gaussian_kernel_1d.h.


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