16 "Sends request for a field to target object"
28 "Mean of all sampled values or of spike rate.",
33 "Standard Deviation of all sampled values, or of rate.",
38 "Sum of all sampled values, or total number of spikes.",
43 "Number of all sampled values, or total number of spikes.",
48 "Number of bins for windowed stats. "
49 "Ignores windowing if this value is zero. ",
55 "Mean of sampled values or of spike rate within window.",
60 "Standard Deviation of sampled values, or rate, within window.",
65 "Sum of all sampled values, or total number of spikes, within window.",
70 "Number of all sampled values, or total number of spikes, "
79 "Handles process call",
82 "Handles reinit call",
86 "Handles continuous value input as a time-series. "
87 "Multiple inputs are allowed, they will be merged. ",
93 static Finfo* procShared[] = {
97 "Shared message for process and reinit",
98 procShared,
sizeof( procShared ) /
sizeof(
const Finfo* )
101 static Finfo* statsFinfos[] = {
121 sizeof( statsFinfos ) /
sizeof (
Finfo* ),
136 mean_( 0.0 ), sdev_( 0.0 ), sum_( 0.0 ), num_( 0 ),
137 wmean_( 0.0 ), wsdev_( 0.0 ), wsum_( 0.0 ), wnum_( 0 ),
138 sumsq_( 0.0 ), isWindowDirty_( true )
156 for ( vector< double >::const_iterator
157 i = v.begin(); i != v.end(); ++i )
276 for (
unsigned int i = 0; i < max; ++i ) {
vector< double > samples_
unsigned int getWindowLength() const
static SrcFinfo1< vector< double > * > * requestOut()
void setWindowLength(unsigned int len)
static const Cinfo * statsCinfo
void process(const Eref &e, ProcPtr p)
static const Cinfo * initCinfo()
unsigned int getNum() const
virtual void vReinit(const Eref &e, ProcPtr p)
unsigned int getWnum() const
virtual void vProcess(const Eref &e, ProcPtr p)
Virtual func for handling process calls for derived classes.
void reinit(const Eref &e, ProcPtr p)
void innerWindowCalculation()
static const Cinfo * initCinfo()
void doWindowCalculation() const