Counts number of pulses in the acquired window by setting a threshold on the derivative
module BCountPulses verbosity = info enable = true ThresholdNumberOfSigma = 5.0 endmod
Public Member Functions | |
MBCountPulses (QSequence *s) | |
void | Init () |
Init method is called before event loop. | |
QEvent * | Do (QEvent *ev) |
Doit method is called for each event, getting the event as argument. | |
void | Done () |
Done method is called after event loop. | |
Private Member Functions | |
QVector | Derivative (const QVector &) |
Derivative function. | |
QVector | Derivative (const QVector &, const int) |
Multiple derivative function. | |
Private Attributes | |
double | fThreshold |
Threshold on derivative as a multiple of RMS. Peaks in the derivative are counted as pulses if they exceed this threshold. |