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

#include <ebl_nonlinearity.h>

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

List of all members.

Public Member Functions

 abs_module (double thresh=0.0)
virtual ~abs_module ()
 Destructor.
virtual void fprop (Tstate &in, Tstate &out)
 forward propagation from in to out
virtual void bprop (Tstate &in, Tstate &out)
 backward propagation from out to in
virtual void bbprop (Tstate &in, Tstate &out)
 second-derivative backward propagation from out to in
virtual abs_module< T, Tstate > * copy ()
 Returns a deep copy of this module.

Detailed Description

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

This module takes the absolute value of its input. This module is spatially replicable (the input can have an order greater than 1 and the operation will apply to all elements).


Constructor & Destructor Documentation

template<typename T , class Tstate >
ebl::abs_module< T, Tstate >::abs_module ( double  thresh = 0.0)

Constructor. threshold makes the derivative of abs flat around zero with radius threshold.


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