Inheritance diagram for SparseMatrixLinker:


Constructors | |
| SparseMatrixLinker (Cluster *from, Cluster *to, const char *name="unnamed") | |
| SparseMatrixLinker (Real prob, Cluster *from, Cluster *to, const char *name="unnamed") | |
| SparseMatrixLinker (Cluster *from, Cluster *to, Real prob, bool zeroDiagonal=false, bool symmetricMask=false, const char *name="unnamed") | |
| SparseMatrixLinker (PropertySettings &prop) | |
| virtual | ~SparseMatrixLinker () |
Interface | |
| virtual void | setWeight (u_int from, u_int to, Real weight) |
| virtual void | randomize (Real min, Real max) |
| void | update () |
| void | connect (u_int from, u_int to) |
| void | connectRandom (Real prob) |
| void | connectAll () |
| void | disconnect (u_int from, u_int to) |
| void | disconnectRandom (Real prob) |
| void | disconnectAll () |
| MatrixData< bool > & | getMask () |
| MatrixData< bool > & | mask () |
| Variant | maskP () |
| void | setMask (const MatrixData< bool > &mask) |
| bool | setMask (const Variant &v) |
| virtual SparseMatrixLinker * | clone () const |
| SparseMatrixLinker | ( | Cluster * | from, | |
| Cluster * | to, | |||
| const char * | name = "unnamed" | |||
| ) |
Connect clusters with complete connections
| SparseMatrixLinker | ( | Real | prob, | |
| Cluster * | from, | |||
| Cluster * | to, | |||
| const char * | name = "unnamed" | |||
| ) |
Connect neurons of Clusters with a random connections with the passed probability.
| SparseMatrixLinker | ( | Cluster * | from, | |
| Cluster * | to, | |||
| Real | prob, | |||
| bool | zeroDiagonal = false, |
|||
| bool | symmetricMask = false, |
|||
| const char * | name = "unnamed" | |||
| ) |
Connect neurons of Clusters with a random connections with the passed probability.
With this contructor you must also specify whether the diagonal of the matrix is made of zeros and whether the matrix is symmetrical
| SparseMatrixLinker | ( | PropertySettings & | prop | ) |
Construct by PropertySettings
| virtual ~SparseMatrixLinker | ( | ) | [virtual] |
Destructor
Set the weight of the connection specified
Reimplemented from MatrixLinker.
Randomize the weights of the SparseMatrixLinker
Reimplemented from MatrixLinker.
| void update | ( | ) | [virtual] |
Performs the dot-product calculation where the non-connection are considered as zero
Implements Updatable.
| void connectRandom | ( | Real | prob | ) |
Connects randomly according to the given probability
| void connectAll | ( | ) |
Connect all couples of neurons
| void disconnectRandom | ( | Real | prob | ) |
Disconnects randomly according to the given probability
| void disconnectAll | ( | ) |
Disonnect all couples of neurons
| MatrixData<bool>& getMask | ( | ) | [inline] |
Get the mask
| MatrixData<bool>& mask | ( | ) | [inline] |
Return the mask
| void setMask | ( | const MatrixData< bool > & | mask | ) |
Set the whole mask matrix
| virtual SparseMatrixLinker* clone | ( | ) | const [virtual] |
Clone this SparseMatrixLinker
Reimplemented from Linker.