Skip to content

[ENH] Add comprehensive tests for mindist and pointwise distance modules + 5 critical bug removal #3186

@Adityakushwaha2006

Description

@Adityakushwaha2006

Description

The mindist and pointwise distance modules currently lack dedicated test coverage.

mindist module - 4 files need tests:

  • _sax.py
  • _sfa.py
  • _dft_sfa.py
  • _paa_sax.py

pointwise module - 4 files need tests:

  • _euclidean.py
  • _manhattan.py
  • _squared.py
  • _minkowski.py

Why This Matters

Distance calculations are fundamental to classification, clustering, and regression in aeon. Without tests, refactoring could introduce bugs and edge cases may not be handled correctly.

Currently only test_symbolic_mindist.py exists for mindist, and pointwise has no dedicated tests.

Proposed Solution

Add comprehensive test suites covering:

  • Correctness with known values
  • Mathematical properties (symmetry, non-negativity, etc.)
  • Edge cases (empty series, extreme values, NaN/Inf)
  • Lower bounding properties for mindist functions
  • Pairwise distance computations

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions