mimas::nn_hebbian Class Reference

Hebbian networks. More...

#include <nn_hebbian.h>

Inheritance diagram for mimas::nn_hebbian:

Inheritance graph
[legend]
Collaboration diagram for mimas::nn_hebbian:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 nn_hebbian (void)
 constructor
 ~nn_hebbian (void)
 destructor
void init (int rows, int cols)
 create a Hebbian network with defined number rows and columns
void setTrainingType (int type)
 set training type to 0=LTP, 1=post-not-pre-LTD, 2=pre-not-post-LTD
void setLearningRate (double lr)
 set the learning rate
void update (matrix_tool &pat, double targetval) throw (exception)
 update the Hebbian weights given pattern pat
double recall (matrix_tool &pat) throw (exception)
 given pattern pat return the predicted output
void useWeights (matrix_tool &weight_matrix)
 use the weights given by weight_matrix
matrix_tool getWeights (void)
 return the weights that are stored

Detailed Description

Hebbian networks.

Author:
Bala Amavasai (bala@amavasai.org)
Date:
Tue Jun 29 18:26:06 BST 2004
Header
/cvs/mimas2/include/nn_hebbian.h,v 1.1.1.1 2005/08/09 15:37:45 engmb Exp

Definition at line 16 of file nn_hebbian.h.


Constructor & Destructor Documentation

mimas::nn_hebbian::nn_hebbian ( void   ) 

constructor

Definition at line 37 of file nn_hebbian.h.

mimas::nn_hebbian::~nn_hebbian ( void   ) 

destructor


Member Function Documentation

void mimas::nn_hebbian::init ( int  rows,
int  cols 
)

create a Hebbian network with defined number rows and columns

Definition at line 43 of file nn_hebbian.h.

void mimas::nn_hebbian::setTrainingType ( int  type  ) 

set training type to 0=LTP, 1=post-not-pre-LTD, 2=pre-not-post-LTD

Definition at line 49 of file nn_hebbian.h.

void mimas::nn_hebbian::setLearningRate ( double  lr  ) 

set the learning rate

Definition at line 54 of file nn_hebbian.h.

void mimas::nn_hebbian::update ( matrix_tool &  pat,
double  targetval 
) throw (exception)

update the Hebbian weights given pattern pat

Definition at line 60 of file nn_hebbian.h.

References MMERROR.

double mimas::nn_hebbian::recall ( matrix_tool &  pat  )  throw (exception)

given pattern pat return the predicted output

Definition at line 90 of file nn_hebbian.h.

References MMERROR.

void mimas::nn_hebbian::useWeights ( matrix_tool &  weight_matrix  ) 

use the weights given by weight_matrix

Definition at line 109 of file nn_hebbian.h.

matrix_tool mimas::nn_hebbian::getWeights ( void   ) 

return the weights that are stored

Definition at line 117 of file nn_hebbian.h.


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:35 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...