nemo::FirstOrderFilter< ValueType, NormType > Class Template Reference

This Mapping implements a temporal filter that clamps differences between successively presented values. More...

#include <Filters.h>

List of all members.

Public Member Functions

ValueType evaluate (ValueType value) const
 Compute the outut value for a given input value.

Static Public Member Functions

static Mapping< ValueType,
ValueType > 
create (NormType maxDiffNormP, Mapping< ValueType, NormType > normP, ValueType initValue)

Detailed Description

template<class ValueType, class NormType>
class nemo::FirstOrderFilter< ValueType, NormType >

This Mapping implements a temporal filter that clamps differences between successively presented values.

A norm over differences must be specified at construction time. Thereby a norm is a Mapping from the ValueType to a scalar type, for instance the Euclidean Norm RealVector->double. In general, this could be anything, but it must guarantee that for any value x:

  • norm( (1/norm(x)) * x) == 1.

An example of the input-output logic for ValueType=double, norm=abs() and a max. difference of 0.4 is

  • filter(0.0) == 0.0
  • filter(1.0) == 0.4
  • filter(1.0) == 0.8
  • filter(1.0) == 1.0
  • filter(0.0) == 0.6

This filter is tested for scalar as well as Vector types:

Definition at line 32 of file Filters.h.


Member Function Documentation

template<class ValueType , class NormType >
static Mapping<ValueType,ValueType> nemo::FirstOrderFilter< ValueType, NormType >::create ( NormType  maxDiffNormP,
Mapping< ValueType, NormType >  normP,
ValueType  initValue 
) [inline, static]

Definition at line 37 of file Filters.h.

template<class ValueType , class NormType >
ValueType nemo::FirstOrderFilter< ValueType, NormType >::evaluate ( ValueType  value  )  const [inline, virtual]

Compute the outut value for a given input value.

Implements nemo::MappingDefinition< ValueType, ValueType >.

Definition at line 45 of file Filters.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 25 12:49:59 2013 for NemoMath by  doxygen 1.6.3