CARLsim
4.1.0
CARLsim: a GPU-accelerated SNN simulator
|
Go to the documentation of this file.
471 void printSparse(
int neurPostId=
ALL,
int maxConn=100,
int connPerLine=4);
double getPercentWeightsWithValue(double value)
Returns the percentage of weights in the connection with a particular value.
void setUpdateTimeIntervalSec(int intervalSec)
Sets the time interval (seconds) for writing snapshots to file.
double getPercentWeightsChanged(double minAbsChanged=1e-5)
Returns the percentage of weights that have changed since the last snapshot.
~ConnectionMonitor()
ConnectionMonitor destructor.
int getNumWeightsInRange(double minValue, double maxValue)
Returns the number of weights in the connection whose values are within some range (inclusive)
long int getTimeMsSinceLastSnapshot()
Returns the timestamp difference of the current and last snapshot.
int getNumNeuronsPost()
Returns the number of post-synaptic neurons.
long int getTimeMsCurrentSnapshot()
Returns the timestamp of the current snapshot (ms since beginning of simulation)
void print()
Prints the current weight state as a 2D matrix (pre x post)
int getNumWeightsWithValue(double value)
Returns the number of weights in the connection with a particular value.
long int getTimeMsLastSnapshot()
Returns the timestamp of the last snapshot (ms since beginning of simulation)
int getFanIn(int neurPostId)
Returns the number of incoming synapses for a specific post-synaptic neuron.
short int getConnectId()
Returns the connection ID that this ConnectionMonitor is managing.
void printSparse(int neurPostId=ALL, int maxConn=100, int connPerLine=4)
Prints the current weight state as a sparse list of weights.
#define ALL
CARLsim common definitions.
double getPercentWeightsInRange(double minValue, double maxValue)
Returns the percentage of weights whose values are within some range (inclusive)
std::vector< std::vector< float > > calcWeightChanges()
Reports the weight changes since the last snapshot in a 2D weight matrix (pre x post)
double getTotalAbsWeightChange()
Returns the absolute sum of all the weight changes since the last snapshot.
int getNumSynapses()
Returns the number of allocated synapses.
int getNumNeuronsPre()
Returns the number of pre-synaptic neurons.
std::vector< std::vector< float > > takeSnapshot()
Takes a snapshot of the current weight state.
double getMaxWeight(bool getCurrent=false)
Returns the max weight in the connection.
int getNumWeightsChanged(double minAbsChanged=1e-5)
Returns the number of weights that have changed since the last snapshot.
double getMinWeight(bool getCurrent=false)
Returns the min weight in the connection.
ConnectionMonitor(ConnectionMonitorCore *connMonCorePtr)
ConnectionMonitor constructor.
int getFanOut(int neurPreId)
Returns the number of outgoing synapses for a specific pre-synaptic neuron.