MCPcopy Create free account
hub / github.com/creatale/node-dv / rms

Method rms

deps/tesseract/ccstruct/linlsq.cpp:131–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 **********************************************************************/
130
131double LLSQ::rms(double m, double c) const { // get error
132 double error; // total error
133
134 if (total_weight > 0) {
135 error = sigyy + m * (m * sigxx + 2 * (c * sigx - sigxy)) + c *
136 (total_weight * c - 2 * sigy);
137 if (error >= 0)
138 error = sqrt(error / total_weight); // sqrt of mean
139 else
140 error = 0;
141 } else {
142 error = 0; // too little
143 }
144 return error;
145}
146
147
148/**********************************************************************

Callers 3

FitBaselineMethod · 0.80
FitLineSpacingModelMethod · 0.80

Calls 1

sqrtFunction · 0.85

Tested by

no test coverage detected