libeblearn
ebl::range_lut_module< T, Tstate > Class Template Reference

#include <ebl_basic.h>

Inheritance diagram for ebl::range_lut_module< T, Tstate >:
ebl::module_1_1< T, Tstate > ebl::module

List of all members.

Public Member Functions

 range_lut_module (idx< T > *value_range)
virtual ~range_lut_module ()
 destructor
virtual void fprop (Tstate &in, Tstate &out)
 forward propagation from in to out

Protected Attributes

idx< T > value_range

Detailed Description

template<typename T, class Tstate = bbstate_idx<T>>
class ebl::range_lut_module< T, Tstate >

This modules transforms its inputs to discrete values corresponding to a range of values, as described a given lookup table (lut).


Constructor & Destructor Documentation

template<typename T , class Tstate >
ebl::range_lut_module< T, Tstate >::range_lut_module ( idx< T > *  value_range)

constructor.

Parameters:
value_rangeA matrix containing a series of value / range pairs. The matrix size is Nx2, with (n, 0) being the value, (n, 1) the maximum of the range. E.g. any value below (0, 1), will be assigned (0, 0), then anything below (1, 1), will be assigned (1, 0), etc. It is assumed that ranges are non overlapping and given in increasing order.

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