You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In script: utils/ops.py#L153
Inside function distance_to_gaussian_surface(mean, svec, rotmat, query)
It calculates squared Mahalanobis distance by : r2 = svec[..., 2] ** 2 * cos_theta**2 + d2**2 * sin_theta**2
But according to Mahalanobis distance formula it should be : r2 = svec[..., 2] ** 2 * cos_theta**2 + d2 * sin_theta**2
I have tested both formula, and both seem to work fine
Is this merely a trivial bug or is there any reason that I missed for your specific formula?
Please let me know :)
The text was updated successfully, but these errors were encountered:
MrForExample
changed the title
[BUG or Misunderstading] Correct way to calculate distance_to_gaussian_surface
[BUG or Misunderstanding] Correct way to calculate distance_to_gaussian_surface
Dec 20, 2023
MrForExample
changed the title
[BUG or Misunderstanding] Correct way to calculate distance_to_gaussian_surface
[BUG???] Correct way to calculate distance_to_gaussian_surface
Dec 21, 2023
In script: utils/ops.py#L153
Inside function
distance_to_gaussian_surface(mean, svec, rotmat, query)
It calculates squared Mahalanobis distance by :
r2 = svec[..., 2] ** 2 * cos_theta**2 + d2**2 * sin_theta**2
But according to Mahalanobis distance formula it should be :
r2 = svec[..., 2] ** 2 * cos_theta**2 + d2 * sin_theta**2
Reference:
https://en.wikipedia.org/wiki/Mahalanobis_distance
https://math.stackexchange.com/questions/18776/mean-distance-between-a-fixed-point-and-a-gaussian-distributed-random-variable
http://www.open3d.org/docs/latest/tutorial/geometry/distance_queries.html
I have tested both formula, and both seem to work fine
Is this merely a trivial bug or is there any reason that I missed for your specific formula?
Please let me know :)
The text was updated successfully, but these errors were encountered: