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

FunctionLookup Class Reference

FunctionLookup is a container class for the lookup tables used by the Neuron classes. More...

#include <amygdala/functionlookup.h>

List of all members.

Public Methods

 FunctionLookup ()
 ~FunctionLookup ()
float * GetLookupTable (Neuron *reqNrn, int tableIdx, int tableSize, int stepSize)


Detailed Description

FunctionLookup is a container class for the lookup tables used by the Neuron classes.

Since a large number of Neurons in a given Network will have identical lookup tables, the tables can be shared to save space and improve caching performance. FunctionLookup manages the creation of tables by querying Neurons after a request for a table has been made. If a suitable table has already been filled, then a pointer will be returned. Otherwise, FunctionLookup will instruct the Neuron to fill a table and pass a pointer back.

The current method of filling lookup tables is convoluted and limits their use to the Neuron classes. Amygdala 0.4 will feature a revised FunctionLookup API that simplifies the process and allows any class to request a table.

Author:
Matt Grover


Member Function Documentation

float* FunctionLookup::GetLookupTable Neuron   reqNrn,
int    tableIdx,
int    tableSize,
int    stepSize
 

This will check to see if a table with the given parameters (and some additional parameters in reqNrn) already exists. If a matching table does not exist, a new one will be created.

Returns:
Pointer to a lookup table.


The documentation for this class was generated from the following file:
Generated on Wed Sep 4 02:30:36 2002 for Amygdala by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002