Relacs Numerics Library  0.9.8
Public Member Functions | List of all members
GaussKernel Class Reference

#include <kernel.h>

Inheritance diagram for GaussKernel:
Inheritance graph
[legend]
Collaboration diagram for GaussKernel:
Collaboration graph
[legend]

Public Member Functions

 GaussKernel (void)
 
 GaussKernel (double stdev)
 
virtual ~GaussKernel (void)
 
double operator() (double x) const
 
virtual double value (double x) const
 
virtual void setScale (double scale)
 
virtual double mean (void) const
 
virtual double stdev (void) const
 
virtual void setStdev (double stdev)
 
virtual double max (void) const
 
virtual double left (void) const
 
virtual double right (void) const
 
- Public Member Functions inherited from Kernel
 Kernel (void)
 
 Kernel (double stdev)
 
virtual ~Kernel (void)
 
double operator() (double x) const
 
double scale (void) const
 

Detailed Description

A gaussian kernel.

Author
Jan Benda
Version
1.0

\[ f(x) = \frac{1}{s\sqrt{2 \pi}} \mathrm{e}^{ - \frac{x^2}{2 s^2}} \]

\[ \sigma = s \]

\[ f(x) = \frac{1}{\sigma\sqrt{2 \pi}} \mathrm{e}^{ - \frac{x^2}{2 \sigma^2}} \]

Constructor & Destructor Documentation

GaussKernel ( void  )
GaussKernel ( double  stdev)
~GaussKernel ( void  )
virtual

Member Function Documentation

double operator() ( double  x) const

References relacs::exp(), and Kernel::scale().

Referenced by GaussKernel::value().

double value ( double  x) const
virtual

Reimplemented from Kernel.

References GaussKernel::operator()().

void setScale ( double  scale)
virtual
double mean ( void  ) const
virtual

Reimplemented from Kernel.

double stdev ( void  ) const
virtual

Reimplemented from Kernel.

References Kernel::scale().

void setStdev ( double  stdev)
virtual

Reimplemented from Kernel.

References GaussKernel::setScale().

Referenced by GaussKernel::GaussKernel().

double max ( void  ) const
virtual

Reimplemented from Kernel.

double left ( void  ) const
virtual

Reimplemented from Kernel.

References Kernel::scale().

double right ( void  ) const
virtual

Reimplemented from Kernel.

References Kernel::scale().


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