Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distance formula #73

Open
rlnd1 opened this issue Mar 22, 2024 · 0 comments
Open

Distance formula #73

rlnd1 opened this issue Mar 22, 2024 · 0 comments

Comments

@rlnd1
Copy link

rlnd1 commented Mar 22, 2024

Hi

I'm reviewing the method used for calculating distances between points in the ccep_retrieveInterROIDistance.m function, specifically at this line:
ccep_retrieveInterROIDistance.m, Line 73.

It seems the calculation sums all components and then applies the square root. For me, this order would make more sense:

  1. calculate difference between x, y, z-coordinates of neighbouring points
  2. square the difference
  3. sum the three components
  4. apply square root to get the distance between all neighbouring points
  5. sum all individual distances to get the total distance

Thank you and all the best,
Roland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant