Relacs  0.9.8
Public Member Functions | List of all members
TriangularKernel Class Reference

#include <kernel.h>

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

Public Member Functions

 TriangularKernel (void)
 
 TriangularKernel (double stdev)
 
virtual ~TriangularKernel (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 triangular kernel.

Author
Jan Benda
Version
1.0

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

\[ \sigma = \sqrt{s/6} \]

\[ s = 6 \sigma^2 \]

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

Constructor & Destructor Documentation

TriangularKernel ( void  )
TriangularKernel ( double  stdev)
~TriangularKernel ( void  )
virtual

Member Function Documentation

double operator() ( double  x) const

References Kernel::scale().

Referenced by TriangularKernel::value().

double value ( double  x) const
virtual

Reimplemented from Kernel.

References TriangularKernel::operator()().

void setScale ( double  scale)
virtual

Reimplemented from Kernel.

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

Referenced by TriangularKernel::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 TriangularKernel::setScale().

Referenced by TriangularKernel::TriangularKernel().

double max ( void  ) const
virtual

Reimplemented from Kernel.

double left ( void  ) const
virtual

Reimplemented from Kernel.

double right ( void  ) const
virtual

Reimplemented from Kernel.


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