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

Nearest-neighbour search for BRIR direction #126

Closed
wants to merge 2 commits into from

Conversation

VeraE
Copy link
Member

@VeraE VeraE commented Jan 5, 2017

I noticed that the nearest-neighbour search for the head direction of a BRIR boldly calculates a Euclidian distance out of angles in radians. I suggest the following correction where the angles are converted to cartesian coordinates first. Not my best day for naming of variables, so feel free to change them...

The second change prevents the warnings for BRIR head directions being out of range to display due to numerical inaccuracies only.

@VeraE
Copy link
Member Author

VeraE commented Jan 19, 2017

After consultation with @trettberg this change proved to be a bit shortsighted only fixing this one simple case. The function findconvexcone() has instead been modified by @trettberg to handle special cases such as spherical caps and 2D arrays of points and can now be used to select nearest neighbours as well as interpolation in 3D.
I will implement the new interpolation handling in the functions for HRIR and BRIR selection and we can discuss this new version. This is closely related to #76.

@VeraE VeraE closed this Jan 19, 2017
@VeraE VeraE deleted the nearestneighbour_brirs branch February 6, 2017 10:26
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

Successfully merging this pull request may close these issues.

1 participant