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

Creates a pyramid of the input with average subsampling. More...

#include <ebl_pooling.h>

Inheritance diagram for ebl::average_pyramid_module< T, Tstate >:
ebl::s2m_module< T, Tstate > ebl::module_1_1< T, Tin, Tout > ebl::module

List of all members.

Public Member Functions

 average_pyramid_module (parameter< T, Tstate > *p, uint thickness, midxdim &strides, const char *name="average_pyramid_module")
virtual void fprop (Tstate &in, Tstate &out)
virtual void fprop (Tstate &in, mstate< Tstate > &out)
virtual void bprop (Tstate &in, mstate< Tstate > &out)
 backward propagation from in to out (empty)
virtual void bbprop (Tstate &in, mstate< Tstate > &out)
 bbackward propagation from in to out (empty)
virtual std::string describe ()
 Returns a string describing this module and its parameters.
virtual mfidxdim bprop_size (mfidxdim &osize)
 Returns input dimensions corresponding to output dimensions 'osize'.

Protected Attributes

midxdim strides
 Strides for each scale.
std::vector
< subsampling_module< T,
Tstate > * > 
mods
 Subsampling modules.
bool well_behaved
 True if strides increase by multiples of previous.

Detailed Description

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

Creates a pyramid of the input with average subsampling.


Constructor & Destructor Documentation

template<typename T , class Tstate >
ebl::average_pyramid_module< T, Tstate >::average_pyramid_module ( parameter< T, Tstate > *  p,
uint  thickness,
midxdim &  strides,
const char *  name = "average_pyramid_module< T, Tstate >" 
)

Creates a pyramid with 'strides.size()' scales, each of which is constructed with an average subsampling with each stride.

Parameters:
pis used to store all parametric variables in a single place. If p is null, a local buffer will be used.
thicknessThe number of features.

Member Function Documentation

template<typename T , class Tstate >
void ebl::average_pyramid_module< T, Tstate >::fprop ( Tstate &  in,
mstate< Tstate > &  out 
) [virtual]

Process 'in' into 'out' which will contain all scales separated in each state of the multi-state 'out'.

Reimplemented from ebl::s2m_module< T, Tstate >.


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