MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / integrateMeasure

Method integrateMeasure

Components/RMSViewTab.cpp:88–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void
89RMSViewTab::integrateMeasure(qreal timestamp, SUFLOAT mag)
90{
91 int intLen = this->ui->intSpin->value();
92 QDateTime date;
93
94 this->energy_accum += mag;
95
96 if (++this->accum_ctr == intLen) {
97 this->energy_accum /= intLen;
98 this->data.push_back(
99 this->energy_accum
100 + I * SU_ASFLOAT(SU_POWER_DB_RAW(this->energy_accum)));
101 this->last = timestamp;
102 this->accum_ctr = 0;
103 this->energy_accum = 0;
104 this->ui->waveform->refreshData();
105 if (this->ui->autoFitButton->isChecked())
106 this->fitVertical();
107 this->ui->waveform->invalidate();
108 }
109}
110
111bool
112RMSViewTab::parseLine(void)

Callers 1

parseLineMethod · 0.95

Calls 2

fitVerticalMethod · 0.95
valueMethod · 0.80

Tested by

no test coverage detected