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

Square-root in EuclideanDistanceCalculator.java #14

Open
steff1193 opened this issue Nov 25, 2016 · 3 comments
Open

Square-root in EuclideanDistanceCalculator.java #14

steff1193 opened this issue Nov 25, 2016 · 3 comments

Comments

@steff1193
Copy link

In distances/EuclideanDistanceCalculator.java method getDistance, you sum the squares of all the diffs. Shouldnt you do square-root on this sum before returning?

@amaurycrickx
Copy link
Owner

you're right, I guess this shouldn't be called Euclidean distance anymore

@amaurycrickx
Copy link
Owner

Do you think I'm right in believing that not applying square-root on the sum helps keeping spread bigger and thus helps when more voice prints are added to the system?

@steff1193
Copy link
Author

steff1193 commented Nov 27, 2016

Yeah, I had the same thought, that, the way it is used, it probably makes things better to leave it as it is. But you should use a different name, because some day, when used in another context, it may be important that it is actually correct euclidean distance that is calculated. If nothing else, it is just really bad naming :-)

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

2 participants