Returns the x,y means as an FCOORD.
| 165 | |
| 166 | // Returns the x,y means as an FCOORD. |
| 167 | FCOORD 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. |
no test coverage detected