nemo::FirstOrderFilter< ValueType, NormType > Class Template Reference
This Mapping implements a temporal filter that clamps differences between successively presented values. More...
#include <Filters.h>
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:
- Mapping<double,double> d = FirstOrderFilter<double,double>::create(0.25, new AbsNorm(), 0.0);
- Mapping<RealVector,RealVector> d = FirstOrderFilter<RealVector,double>::create( 0.25, new EuclideanNorm(), RealVector(0.0,0.0) );
Definition at line 32 of file Filters.h.
Member Function Documentation
static Mapping<ValueType,ValueType> nemo::FirstOrderFilter< ValueType, NormType >::create | ( | NormType | maxDiffNormP, | |
Mapping< ValueType, NormType > | normP, | |||
ValueType | initValue | |||
) | [inline, static] |
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 >.
The documentation for this class was generated from the following file:
- nemo/Filters.h
Generated on Mon Feb 25 12:49:59 2013 for NemoMath by 1.6.3