Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

StimulusParameterMap_Combined< MapType, MapBaseType, ValuePointer > Class Template Reference

#include <stimulusparametermap.h>

Inheritance diagram for StimulusParameterMap_Combined< MapType, MapBaseType, ValuePointer >:

Inheritance graph
[legend]
Collaboration diagram for StimulusParameterMap_Combined< MapType, MapBaseType, ValuePointer >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class MapType, class MapBaseType, class ValuePointer>
class StimulusParameterMap_Combined< MapType, MapBaseType, ValuePointer >

Concrete class implementing both discrete and distribution-based methods for map computation.

Originally these were intended to be handled by different subclasses. However, to avoid introducing a performance penalty in the update() and mark() calls by making those calls into virtual functions, a single class was used without virtual functions.

Definition at line 75 of file stimulusparametermap.h.

Public Types

typedef Histo::OneDBinList Histogram
typedef MatrixType< typename
MapType::value_type >::rectangular 
MapMatrix
typedef MatrixType< Histogram
>::rectangular 
HistoMatrix
typedef StimulusParameterMap<
MapBaseType, ValuePointer
>::Subscript 
Subscript
typedef MapAdapterType::ScaleType ScaleType

Public Methods

 StimulusParameterMap_Combined (const MapType &reference_map, const string &name_, ValuePointer &valueptr_, bool measure_distribution_=true, bool weighted_average_=false, bool cyclic_=true, const ScaleType &selectivity_scale_=ScaleType())
void mark_current_value_as_max (Subscript r, Subscript c)
void update_distribution (Subscript r, Subscript c, Histogram::Magnitude val)
MapBaseType * map () const
 Returns a map of the stimulus preference for each unit, scaled so that each element is a Magnitude, i.e.

MapBaseType * selectivity () const
const bool has_distribution () const


Member Function Documentation

template<class MapType, class MapBaseType, class ValuePointer>
MapBaseType* StimulusParameterMap_Combined< MapType, MapBaseType, ValuePointer >::map   const [inline, virtual]
 

Returns a map of the stimulus preference for each unit, scaled so that each element is a Magnitude, i.e.

a value from 0.0 to 1.0. The method used to compute the map depends upon the values of measure_distribution, weighted_average, and cyclic.

Histogram::max_value_bin_mag will also work, and be about the same as coarse_map.

Implements StimulusParameterMap< MapBaseType, ValuePointer >.

Definition at line 124 of file stimulusparametermap.h.

Referenced by StimulusParameterMapsForRegion< MapType, MapBaseType, ValuePointer >::register_maps().


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:24 2003 for RF-LISSOM by doxygen1.3-rc2