| 81 | **********************************************************************/ |
| 82 | |
| 83 | void 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 | /********************************************************************** |
no test coverage detected