__init__.py 880 B

12345678910111213141516171819202122232425262728293031
  1. """
  2. =========================================
  3. Clustering package (:mod:`scipy.cluster`)
  4. =========================================
  5. .. currentmodule:: scipy.cluster
  6. Clustering algorithms are useful in information theory, target detection,
  7. communications, compression, and other areas. The `vq` module only
  8. supports vector quantization and the k-means algorithms.
  9. The `hierarchy` module provides functions for hierarchical and
  10. agglomerative clustering. Its features include generating hierarchical
  11. clusters from distance matrices,
  12. calculating statistics on clusters, cutting linkages
  13. to generate flat clusters, and visualizing clusters with dendrograms.
  14. .. toctree::
  15. :maxdepth: 1
  16. cluster.vq
  17. cluster.hierarchy
  18. """
  19. __all__ = ['vq', 'hierarchy']
  20. from . import vq, hierarchy
  21. from scipy._lib._testutils import PytestTester
  22. test = PytestTester(__name__)
  23. del PytestTester