Miind
|
#include <libs/MPILib/include/PersistantAlgorithm.hpp>
Public Types | |
typedef double | WeightType |
Public Member Functions | |
PersistantAlgorithm () | |
PersistantAlgorithm (const PersistantAlgorithm &) | |
~PersistantAlgorithm () | |
virtual PersistantAlgorithm * | clone () const |
virtual void | configure (const SimulationRunParameter &simParam) |
virtual void | evolveNodeState (const std::vector< Rate > &nodeVector, const std::vector< double > &weightVector, Time time) |
virtual void | evolveNodeState (const std::vector< Rate > &nodeVector, const std::vector< double > &weightVector, Time time, const std::vector< NodeType > &typeVector) |
std::valarray< double > & | getArrayInterpretation (AlgorithmGrid &grid) const |
std::valarray< double > & | getArrayState (AlgorithmGrid &grid) const |
virtual Rate | getCurrentRate () const |
virtual Time | getCurrentTime () const |
virtual AlgorithmGrid | getGrid (NodeId, bool) const |
Number & | getStateSize (AlgorithmGrid &grid) const |
Number | getStateSize (const AlgorithmGrid &grid) const |
virtual void | prepareEvolve (const std::vector< Rate > &nodeVector, const std::vector< double > &weightVector, const std::vector< NodeType > &typeVector) |
Private Member Functions | |
std::vector< double > | getInitialState () const |
double | innerProduct (const std::vector< Rate > &nodeVector, const std::vector< double > &weightVector) |
Private Attributes | |
MPILib::Rate | _rate |
MPILib::Time | _time |
Definition at line 29 of file PersistantAlgorithm.hpp.
|
inherited |
Definition at line 41 of file AlgorithmInterface.hpp.
MPILib::algorithm::PersistantAlgorithm::PersistantAlgorithm | ( | ) |
Definition at line 36 of file PersistantAlgorithm.cpp.
Referenced by clone().
MPILib::algorithm::PersistantAlgorithm::PersistantAlgorithm | ( | const PersistantAlgorithm & | rhs | ) |
Cloning operation, to provide each DynamicNode with its own Algorithm instance. Clients use the naked pointer at their own risk.
Definition at line 42 of file PersistantAlgorithm.cpp.
MPILib::algorithm::PersistantAlgorithm::~PersistantAlgorithm | ( | ) |
Definition at line 48 of file PersistantAlgorithm.cpp.
|
virtual |
Cloning operation, to provide each DynamicNode with its own Algorithm instance. Clients use the naked pointer at their own risk.
Implements MPILib::AlgorithmInterface< double >.
Definition at line 51 of file PersistantAlgorithm.cpp.
References PersistantAlgorithm().
|
virtual |
Configure the Algorithm
simParam |
Implements MPILib::AlgorithmInterface< double >.
Definition at line 55 of file PersistantAlgorithm.cpp.
References _time, and MPILib::SimulationRunParameter::getTBegin().
|
virtual |
Evolve the node state
nodeVector | Vector of the node States |
weightVector | Vector of the weights of the nodes |
time | Time point of the algorithm |
Reimplemented from MPILib::AlgorithmInterface< double >.
Definition at line 60 of file PersistantAlgorithm.cpp.
References _rate, _time, and innerProduct().
|
inlinevirtualinherited |
Evolve the node state. In the default case it simply calls envolveNodeState without the NodeTypes. However if an algorithm needs the nodeTypes of the precursors overwrite this function.
nodeVector | Vector of the node States |
weightVector | Vector of the weights of the nodes |
time | Time point of the algorithm |
typeVector | Vector of the NodeTypes of the precursors |
Definition at line 83 of file AlgorithmInterface.hpp.
|
inlineinherited |
Definition at line 125 of file AlgorithmInterface.hpp.
|
inlineinherited |
Definition at line 120 of file AlgorithmInterface.hpp.
|
virtual |
The calculated rate of the node
Implements MPILib::AlgorithmInterface< double >.
Definition at line 79 of file PersistantAlgorithm.cpp.
References _rate.
|
virtual |
The current timepoint
Implements MPILib::AlgorithmInterface< double >.
Definition at line 75 of file PersistantAlgorithm.cpp.
References _time.
|
virtual |
Stores the algorithm state in a Algorithm Grid
NodeId,id | of the node that needs to return the grid |
b_state,return | the entire state if true, a reduced grid with just the firing rate info if false |
Implements MPILib::AlgorithmInterface< double >.
Definition at line 102 of file PersistantAlgorithm.cpp.
References MPILib::WILSON_COWAN_STATE_DIMENSION.
|
private |
Definition at line 96 of file PersistantAlgorithm.cpp.
References MPILib::WILSON_COWAN_STATE_DIMENSION.
|
inlineinherited |
Definition at line 130 of file AlgorithmInterface.hpp.
|
inlineinherited |
Definition at line 135 of file AlgorithmInterface.hpp.
|
private |
Definition at line 83 of file PersistantAlgorithm.cpp.
Referenced by evolveNodeState().
|
inlinevirtualinherited |
prepare the Evolve method
nodeVector | Vector of the node States |
weightVector | Vector of the weights of the nodes |
typeVector | Vector of the NodeTypes of the precursors |
Definition at line 95 of file AlgorithmInterface.hpp.
|
private |
Definition at line 81 of file PersistantAlgorithm.hpp.
Referenced by evolveNodeState(), and getCurrentRate().
|
private |
Definition at line 82 of file PersistantAlgorithm.hpp.
Referenced by configure(), evolveNodeState(), and getCurrentTime().