NeuralSimModule< T > Class Template Reference

A SimModule interface to various models created with the ModelNeuron. More...

#include <ModelNeuron/NeuralSimModule.H>

Inheritance diagram for NeuralSimModule< T >:
Inheritance graph
[legend]
Collaboration diagram for NeuralSimModule< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 NeuralSimModule (OptionManager &mgr, const std::string &descrName="NeuralSimModule", const std::string &tagName="NeuralSimModule")
 Uninitialized constructor.
virtual ~NeuralSimModule ()
 Destructor.
uint size () const
 get the number of input/output layers
void setInput (const Image< float > &in, const int layer)
 set a new input, -1 for default
void setInputGain (const float &weight, const int layer)
 set a gain for the desired input
Image< float > getV (const int layer) const
 get the output, -1 for default
ImageSet< float > getSubV () const
 get the output of all the layers
void update (const SimTime &time)
 update our internals to the current time
Layout< PixRGB< byte > > getDisplay () const
void reset ()
 Reset to initial state just after construction.
rutz::shared_ptr< T > getStructure ()

Protected Member Functions

virtual void setModel (const std::string &model, const Dims &dims, const SimTime &starttime=SimTime::ZERO())

Protected Attributes

OModelParam< SimTimeitsSCtimestep
 simulation timestep
OModelParam< DimsitsSCdims
 SC dimensions.
NModelParam< bool > itsUseSpaceVariantBoundary
 use space variant boundary
OModelParam< std::stringitsDecoderType
 type of decoder
OModelParam< LocationitsProbe
OModelParam< uintitsPlotLength
OModelParam< uintits2DPlotDepth
OModelParam< uintitsProbeDepth
OModelParam< bool > itsDisplayOutput
OModelParam< Range< double > > itsDisplayRange
OModelParam< Dimsits2DPlotSize
rutz::shared_ptr< T > itsStructure
rutz::shared_ptr< StructurePlotitsPlot
ImageSet< double > itsInput
std::vector< double > itsInputGain
Dims itsInputDims

Detailed Description

template<class T>
class NeuralSimModule< T >

A SimModule interface to various models created with the ModelNeuron.

Definition at line 59 of file NeuralSimModule.H.


Constructor & Destructor Documentation

template<class T>
NeuralSimModule< T >::NeuralSimModule ( OptionManager mgr,
const std::string descrName = "NeuralSimModule< T >",
const std::string tagName = "NeuralSimModule< T >" 
)

Uninitialized constructor.

template<class T>
virtual NeuralSimModule< T >::~NeuralSimModule (  )  [virtual]

Destructor.


Member Function Documentation

template<class T>
ImageSet<float> NeuralSimModule< T >::getSubV (  )  const

get the output of all the layers

template<class T>
Image<float> NeuralSimModule< T >::getV ( const int  layer  )  const

get the output, -1 for default

template<class T>
void NeuralSimModule< T >::reset (  ) 

Reset to initial state just after construction.

template<class T>
void NeuralSimModule< T >::setInput ( const Image< float > &  in,
const int  layer 
)

set a new input, -1 for default

template<class T>
void NeuralSimModule< T >::setInputGain ( const float &  weight,
const int  layer 
)

set a gain for the desired input

template<class T>
uint NeuralSimModule< T >::size (  )  const

get the number of input/output layers

template<class T>
void NeuralSimModule< T >::update ( const SimTime time  ) 

update our internals to the current time


Member Data Documentation

template<class T>
OModelParam<std::string> NeuralSimModule< T >::itsDecoderType [protected]

type of decoder

Definition at line 101 of file NeuralSimModule.H.

template<class T>
OModelParam<Dims> NeuralSimModule< T >::itsSCdims [protected]

SC dimensions.

Definition at line 99 of file NeuralSimModule.H.

template<class T>
OModelParam<SimTime> NeuralSimModule< T >::itsSCtimestep [protected]

simulation timestep

Definition at line 98 of file NeuralSimModule.H.

template<class T>
NModelParam<bool> NeuralSimModule< T >::itsUseSpaceVariantBoundary [protected]

use space variant boundary

Definition at line 100 of file NeuralSimModule.H.


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