merge with another centroid
| 45 | |
| 46 | // merge with another centroid |
| 47 | void Merge(const Centroid& centroid) { |
| 48 | weight += centroid.weight; |
| 49 | mean += (centroid.mean - mean) * centroid.weight / weight; |
| 50 | } |
| 51 | }; |
| 52 | |
| 53 | // scale function K0: linear function, as baseline |
nothing calls this directly
no outgoing calls
no test coverage detected