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

FixedWtRegion Class Reference

NeuralRegion with a fixed, shared set of weights for all neurons. More...

#include <fixedwtregion.h>

Inheritance diagram for FixedWtRegion

Inheritance graph

[legend]
Collaboration diagram for FixedWtRegion:

Collaboration graph

[legend]
List of all members.

Public Methods

 FixedWtRegion (string name_i, Subscript height, Subscript width, Activity& act_threshold)
virtual ~FixedWtRegion ()
virtual void add_input (const string& name, const ActivityMatrix& input_region, WeightFunction& fn, Length size_scale=1.0)
 Add a new input region; accepts a unary function of size_scale to initialize the weights. More...

virtual Dimensions input_dimensions (WeightFunction& fn, Length size_scale=1.0)
 Computes input dimensions that would be required to avoid border effects. More...

virtual void activate (bool=false,bool=false)
 Activate the map given the current inputs. More...

virtual const WeightMatrix get_weights (const string& name="", int=0,int=0) const
 Returns weights from the given unit from the group of weights with the given name. More...


Protected Types

typedef vector<Input*> inputs_type
 Type to use for storing inputs. More...


Protected Attributes

Activitythreshold
 Activity threshold; values below this are set to zero to save computation. More...

inputs_type inputs
 Set of inputs to this region. More...


Detailed Description

NeuralRegion with a fixed, shared set of weights for all neurons.

It effectively computes the convolution of the weights with the input region. Accepts an empty kernel, in which case no convolution is done.

Convolution can optionally use a larger source image than destination to avoid aliasing. If so, the supplied kernel should be scaled to match.

Definition at line 69 of file fixedwtregion.h.


Member Typedef Documentation

typedef vector<Input*> FixedWtRegion::inputs_type [protected]
 

Type to use for storing inputs.

Definition at line 129 of file fixedwtregion.h.


Constructor & Destructor Documentation

FixedWtRegion::FixedWtRegion ( string name_i,
Subscript height,
Subscript width,
Activity & act_threshold )
 

Definition at line 71 of file fixedwtregion.h.

FixedWtRegion::~FixedWtRegion ( ) [inline, virtual]
 

Definition at line 74 of file fixedwtregion.h.


Member Function Documentation

void FixedWtRegion::activate ( bool learn = false,
bool settle = false ) [inline, virtual]
 

Activate the map given the current inputs.

Must be implemented by derived classes.

Reimplemented from NeuralRegion.

Definition at line 94 of file fixedwtregion.h.

void FixedWtRegion::add_input ( const string & name,
const ActivityMatrix & input_region,
WeightFunction & fn,
Length size_scale = 1.0 ) [inline, virtual]
 

Add a new input region; accepts a unary function of size_scale to initialize the weights.

Reimplemented from InternalNeuralRegion.

Definition at line 76 of file fixedwtregion.h.

const WeightMatrix FixedWtRegion::get_weights ( const string & name = "",
int i = 0,
int j = 0 ) const [inline, virtual]
 

Returns weights from the given unit from the group of weights with the given name.

The weights returned may e.g. be a constant set of weights for all units regardless, or they may be generated on the fly, so bear that in mind. If a region does not have any weights with the specified name, it should return an empty (0x0) matrix.

Reimplemented from InternalNeuralRegion.

Definition at line 105 of file fixedwtregion.h.

Dimensions FixedWtRegion::input_dimensions ( WeightFunction & fn,
Length size_scale = 1.0 ) [inline, virtual]
 

Computes input dimensions that would be required to avoid border effects.

Reimplemented from InternalNeuralRegion.

Definition at line 86 of file fixedwtregion.h.


Member Data Documentation

inputs_type FixedWtRegion::inputs [protected]
 

Set of inputs to this region.

Definition at line 132 of file fixedwtregion.h.

Activity & FixedWtRegion::threshold [protected]
 

Activity threshold; values below this are set to zero to save computation.

Definition at line 112 of file fixedwtregion.h.


The documentation for this class was generated from the following file:
Generated at Mon Aug 21 00:31:17 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000