Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <int Dim>
- double KDTree<Dim>::dist(const Point<Dim>& a, const Point<Dim>& b) const
- {
- /**
- * @todo Implement this function!
- */
- double pa = 0;
- for(int i = 0; i < Dim; i++){
- pa+=((a[i] - b[i])*(a[i] - b[i]));
- }
- return pa;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement