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

Method calculateSquareError

Misc/SNREstimator.cpp:119–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void
120SNREstimator::calculateSquareError(void)
121{
122 if (this->length && this->intervals > 0) {
123 float err;
124 this->sqerr = 0;
125 for (unsigned i = 0; i < this->length; ++i) {
126 err = (this->Hi[i] - this->Htilde[i]) * (this->Hi[i] - this->Htilde[i]);
127 this->sqerr += err * err;
128 }
129
130 this->dirty = false;
131 }
132}
133
134void
135SNREstimator::setBps(unsigned int bps)

Callers 1

getMSEMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected