#include <HopfieldNetwork.h>
Inheritance diagram for HopfieldNetwork:


Public Member Functions | |
| HopfieldNetwork (uint size, bool bias=false, bool bipolar=true) | |
| HopfieldNetwork (const char *filename) | |
| Loads a Hopfield network from a file. | |
| ~HopfieldNetwork () | |
| Cleans up memory by getting rid of the weight matrix. | |
| virtual void | save (const std::string &filename) |
| Saves the network to a file. | |
| virtual void | setWeight (uint i, uint j, real weight) |
| Sets the weight between the ith and jth neuron. | |
| virtual Matrix | getWeightMatrix () |
| Returns a copy of the weight matrix that is used by this network. | |
| virtual void | addPattern (int pattern[]) |
| Adds a pattern to the network by making suitable adjustments to the weight matrix. | |
| virtual uint | getPatternCount () |
| The number of patterns that the network has been instructed to store This will be the same as the number of calls to addPattern. | |
Protected Member Functions | |
| virtual real | getWeight (uint from, uint to) const |
Protected Attributes | |
| Matrix * | _weightMatrix |
| The weight matrix of the network. | |
It will have problems with large number of neurons (because the weights for 'em need ^2 memory)
|
||||||||||||||||
|
|
|
|
Loads a Hopfield network from a file.
|
|
|
Cleans up memory by getting rid of the weight matrix.
|
|
|
Adds a pattern to the network by making suitable adjustments to the weight matrix.
|
|
|
The number of patterns that the network has been instructed to store This will be the same as the number of calls to addPattern.
|
|
||||||||||||
|
Implements HopfieldBase. |
|
|
Returns a copy of the weight matrix that is used by this network.
|
|
|
Saves the network to a file.
Reimplemented from HopfieldBase. |
|
||||||||||||||||
|
Sets the weight between the ith and jth neuron. Since the weights are symmetruc, the weight between neuron i and neuron j will be the same as the weight between neuron j and neuron i, which will be the same as the weight supplied.
Implements HopfieldBase. |
|
|
The weight matrix of the network.
|
1.3.5