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

Method mean_point

deps/tesseract/ccstruct/linlsq.cpp:167–173  ·  view source on GitHub ↗

Returns the x,y means as an FCOORD.

Source from the content-addressed store, hash-verified

165
166// Returns the x,y means as an FCOORD.
167FCOORD LLSQ::mean_point() const {
168 if (total_weight > 0.0) {
169 return FCOORD(sigx / total_weight, sigy / total_weight);
170 } else {
171 return FCOORD(0.0f, 0.0f);
172 }
173}
174
175// Returns the sqrt of the mean squared error measured perpendicular from the
176// line through mean_point() in the direction dir.

Callers 4

MeanDirectionVectorFunction · 0.80
ExtractFeaturesFromRunFunction · 0.80
FitBaselineMethod · 0.80
ComputeMomentsMethod · 0.80

Calls 1

FCOORDFunction · 0.70

Tested by

no test coverage detected