SingleChannelSurprise< SMODEL > Class Template Reference

SingleChannelSurprise is a Surprise extension to SingleChannel. More...

#include <Surprise/SingleChannelSurprise.H>

Inheritance diagram for SingleChannelSurprise< SMODEL >:
Inheritance graph
[legend]
Collaboration diagram for SingleChannelSurprise< SMODEL >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SingleChannelSurprise (OptionManager &mgr)
 Constructor.
virtual ~SingleChannelSurprise ()
 destructor
Image< float > getSurpriseMap (const uint index, const Image< float > &submap)
 get a surprise map
virtual Image< float > compute (const SingleChannel &chan, const uint i)
 Compute the i'th submap for the given channel.

Protected Member Functions

virtual void start1 ()
 This is called from within start() before the subcomponents start.

Protected Attributes

OModelParam< uintitsSQlen
 number of surprise maps
OModelParam< double > itsUpdateFac
 update factor
OModelParam< double > itsNeighUpdateFac
 update factor for neighbors
NModelParam< double > itsInitialVal
 Initial values.
NModelParam< double > itsInitialVar
 Initial variance.
NModelParam< double > itsBgVal
 Background values.
OModelParam< float > itsNeighSigma
 Neighborhood sigma.
OModelParam< float > itsLocSigma
 Local neighborhood sigma.
OModelParam< bool > itsTakeSTMax
 Use Max for space-time.
OModelParam< bool > itsLogged
 Do we dump data to a log file.
OModelParam< LevelSpecitsLevelSpec
 our levelspec
OModelParam< Point2D< int > > itsProbe
 location of a virtusl electrode
OModelParam< double > itsSLfac
 fact for local temporal surprise
OModelParam< double > itsSSfac
 factor for spatial surprise
OModelParam< std::stringitsJointKLBiasTypeStr

Detailed Description

template<class SMODEL>
class SingleChannelSurprise< SMODEL >

SingleChannelSurprise is a Surprise extension to SingleChannel.

This class only provides the computation of surprise. Typically you would first build a SingleChannel (or derivative), then build a SingleChannelSurprise, then pass the SingleChannelSurprise to the channel's setSubmapAlgorithm(). See VisualCortexSurprise for example usage.

Definition at line 55 of file SingleChannelSurprise.H.


Constructor & Destructor Documentation

template<class SMODEL >
SingleChannelSurprise< SMODEL >::SingleChannelSurprise ( OptionManager mgr  )  [inline]
template<class SMODEL >
SingleChannelSurprise< SMODEL >::~SingleChannelSurprise (  )  [inline, virtual]

destructor

Definition at line 85 of file SingleChannelSurprise.C.


Member Function Documentation

template<class SMODEL >
Image< float > SingleChannelSurprise< SMODEL >::compute ( const SingleChannel chan,
const uint  i 
) [inline, virtual]

Compute the i'th submap for the given channel.

Implements SubmapAlgorithm.

Definition at line 132 of file SingleChannelSurprise.C.

References SingleChannel::getRawCSmap(), SingleChannelSurprise< SMODEL >::getSurpriseMap(), and SingleChannel::postProcessMap().

template<class SMODEL >
Image< float > SingleChannelSurprise< SMODEL >::getSurpriseMap ( const uint  index,
const Image< float > &  submap 
) [inline]
template<class SMODEL >
void SingleChannelSurprise< SMODEL >::start1 (  )  [inline, protected, virtual]

Member Data Documentation

template<class SMODEL >
NModelParam<double> SingleChannelSurprise< SMODEL >::itsBgVal [protected]
template<class SMODEL >
NModelParam<double> SingleChannelSurprise< SMODEL >::itsInitialVal [protected]

Initial values.

Definition at line 77 of file SingleChannelSurprise.H.

Referenced by SingleChannelSurprise< SMODEL >::start1().

template<class SMODEL >
NModelParam<double> SingleChannelSurprise< SMODEL >::itsInitialVar [protected]
template<class SMODEL >
OModelParam<LevelSpec> SingleChannelSurprise< SMODEL >::itsLevelSpec [protected]

our levelspec

Definition at line 84 of file SingleChannelSurprise.H.

Referenced by SingleChannelSurprise< SMODEL >::start1().

template<class SMODEL >
OModelParam<float> SingleChannelSurprise< SMODEL >::itsLocSigma [protected]

Local neighborhood sigma.

Definition at line 81 of file SingleChannelSurprise.H.

Referenced by SingleChannelSurprise< SMODEL >::start1().

template<class SMODEL >
OModelParam<bool> SingleChannelSurprise< SMODEL >::itsLogged [protected]

Do we dump data to a log file.

Definition at line 83 of file SingleChannelSurprise.H.

template<class SMODEL >
OModelParam<float> SingleChannelSurprise< SMODEL >::itsNeighSigma [protected]

Neighborhood sigma.

Definition at line 80 of file SingleChannelSurprise.H.

Referenced by SingleChannelSurprise< SMODEL >::start1().

template<class SMODEL >
OModelParam<double> SingleChannelSurprise< SMODEL >::itsNeighUpdateFac [protected]

update factor for neighbors

Definition at line 76 of file SingleChannelSurprise.H.

Referenced by SingleChannelSurprise< SMODEL >::start1().

template<class SMODEL >
OModelParam<Point2D<int> > SingleChannelSurprise< SMODEL >::itsProbe [protected]

location of a virtusl electrode

Definition at line 85 of file SingleChannelSurprise.H.

Referenced by SingleChannelSurprise< SMODEL >::start1().

template<class SMODEL >
OModelParam<double> SingleChannelSurprise< SMODEL >::itsSLfac [protected]

fact for local temporal surprise

Definition at line 86 of file SingleChannelSurprise.H.

Referenced by SingleChannelSurprise< SMODEL >::start1().

template<class SMODEL >
OModelParam<uint> SingleChannelSurprise< SMODEL >::itsSQlen [protected]

number of surprise maps

Definition at line 74 of file SingleChannelSurprise.H.

Referenced by SingleChannelSurprise< SMODEL >::start1().

template<class SMODEL >
OModelParam<double> SingleChannelSurprise< SMODEL >::itsSSfac [protected]

factor for spatial surprise

Definition at line 87 of file SingleChannelSurprise.H.

Referenced by SingleChannelSurprise< SMODEL >::start1().

template<class SMODEL >
OModelParam<bool> SingleChannelSurprise< SMODEL >::itsTakeSTMax [protected]

Use Max for space-time.

Definition at line 82 of file SingleChannelSurprise.H.

Referenced by SingleChannelSurprise< SMODEL >::start1().

template<class SMODEL >
OModelParam<double> SingleChannelSurprise< SMODEL >::itsUpdateFac [protected]

The documentation for this class was generated from the following files:
Generated on Sun May 8 08:25:39 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3