Skip to content

[ENH] Distance module cleanup #2161

Description

@chrisholder

Describe the issue

The distance module has now got quite a lot of distances. Having all the distances as a flat directory makes it quite hard to manage and navigate.

Suggest a potential alternative/fix

We should split the distance module into sub directories based on the distances type. To begin I think we should have a directory for 'elastic' distances and the rest can be at the root level.

In addition while doing this I want to clean up the utility functions in _distance.py and organise the tests based on this new structure.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    distancesDistances packageenhancementNew feature, improvement request or other non-bug code enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions