libeblearn
|
#include <ebl_basic.h>
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 |
This modules transforms its inputs to discrete values corresponding to a range of values, as described a given lookup table (lut).
ebl::range_lut_module< T, Tstate >::range_lut_module | ( | idx< T > * | value_range | ) |
constructor.
value_range | A 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. |