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

#include <kernel.h>

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

Public Member Functions

 RectKernel (void)
 
 RectKernel (double stdev)
 
virtual ~RectKernel (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
 
- Public Member Functions inherited from Kernel
 Kernel (void)
 
 Kernel (double stdev)
 
virtual ~Kernel (void)
 
double operator() (double x) const
 
double scale (void) const
 
virtual double left (void) const
 
virtual double right (void) const
 

Detailed Description

A rectangular kernel.

Author
Jan Benda
Version
1.0

\[ f(x) = \left\{ \begin{array}{lcl} 1/s & ; & -s/2 \le x \le s/2 \\ 0 & ; & else \end{array} \right. \]

\[ \sigma = \frac{s}{2\sqrt{3}} \]

\[ s = 2\sqrt{3} \sigma \]

\[ f(x) = \left\{ \begin{array}{lcl} \frac{1}{2\sqrt{3}\sigma} & ; & -\sqrt{3}\sigma \le x \le \sqrt{3}\sigma \\ 0 & ; & else \end{array} \right. \]

Constructor & Destructor Documentation

RectKernel ( void  )
RectKernel ( double  stdev)
~RectKernel ( void  )
virtual

Member Function Documentation

double operator() ( double  x) const

References Kernel::scale().

Referenced by RectKernel::value().

double value ( double  x) const
virtual

Reimplemented from Kernel.

References RectKernel::operator()().

void setScale ( double  scale)
virtual

Reimplemented from Kernel.

References Kernel::scale(), and Kernel::setScale().

Referenced by RectKernel::setStdev().

double mean ( void  ) const
virtual

Reimplemented from Kernel.

double stdev ( void  ) const
virtual

Reimplemented from Kernel.

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

void setStdev ( double  stdev)
virtual

Reimplemented from Kernel.

References RectKernel::setScale(), and relacs::sqrt().

Referenced by RectKernel::RectKernel().

double max ( void  ) const
virtual

Reimplemented from Kernel.


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