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

bray_curtis() should divide by the absolute value of the sum #2

Open
kylebittinger opened this issue Jan 10, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@kylebittinger
Copy link
Owner

kylebittinger commented Jan 10, 2020

SciPy does this, and when you think about computing the distance between vectors, this interpretation makes the Bray-Curtis dissimilarity invariant to reflection. Taking the absolute value does not make a difference if the vector elements are all positive, so this change would not alter the behavior of the function for species counts or proportions. Must look into the symmetry properties of manhattan distance and see how many are maintained if we take the absolute value.

@kylebittinger kylebittinger added the enhancement New feature or request label Jan 10, 2020
@kylebittinger kylebittinger changed the title Bray-Curtis distance should divide by the absolute value of the sum bray_curtis() should divide by the absolute value of the sum Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant