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

Method remove

deps/tesseract/ccstruct/linlsq.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 **********************************************************************/
82
83void LLSQ::remove(double x, double y) { // delete an element
84 if (total_weight <= 0.0) // illegal
85 EMPTY_LLSQ.error("LLSQ::remove", ABORT, NULL);
86 total_weight--; // count elements
87 sigx -= x; // update accumulators
88 sigy -= y;
89 sigxx -= x * x;
90 sigxy -= x * y;
91 sigyy -= y * y;
92}
93
94
95/**********************************************************************

Callers 12

DeleteShapeMethod · 0.45
ResegmentCharBoxMethod · 0.45
AddStartLineMethod · 0.45
AddBodyLineMethod · 0.45
CalculateTabStopsFunction · 0.45
DiscardUnusedModelsMethod · 0.45
CheckSeamFunction · 0.45
remove_edge_linkageMethod · 0.45
MergeAdjacentBlobsMethod · 0.45
DeleteBoxMethod · 0.45
MergeBlobsMethod · 0.45

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected