nemo::Clamping< T > Class Template Reference

This mapping type cuts off components of input vectors to specified minimum and maximum values. More...

#include <VectorMappings.h>

List of all members.

Public Member Functions

MathVector< T > evaluate (MathVector< T > input) const
 Compute the outut value for a given input value.

Static Public Member Functions

static Mapping< MathVector< T >
, MathVector< T > > 
create (MathVector< T > minP, MathVector< T > maxP)

Detailed Description

template<typename T = double>
class nemo::Clamping< T >

This mapping type cuts off components of input vectors to specified minimum and maximum values.

For an input vector x, the output c is computed as

  • c[i] = min[i] if x[i] < min[i]
  • c[i] = max[i] if x[i] > max[i]
  • c[i] = x[i] else.

This mapping type is not invertible.

Definition at line 228 of file VectorMappings.h.


Member Function Documentation

template<typename T = double>
static Mapping<MathVector<T>,MathVector<T> > nemo::Clamping< T >::create ( MathVector< T >  minP,
MathVector< T >  maxP 
) [inline, static]

Definition at line 230 of file VectorMappings.h.

template<typename T = double>
MathVector<T> nemo::Clamping< T >::evaluate ( MathVector< T >  value  )  const [inline, virtual]

Compute the outut value for a given input value.

Implements nemo::MappingDefinition< MathVector< T >, MathVector< T > >.

Definition at line 242 of file VectorMappings.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