Skip to content

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

@kylebittinger

Description

@kylebittinger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions