Skip to main content

Curve similarity measures

Project description

CurveSimilarities

License CI CD Docs Supported Python Versions PyPI Version

Curve similarity measures, implemented using Numba.

List of supported measures:

  • Dynamic time warping distance (dtw())
  • (Continuous) Fréchet distance (fd())
  • Discrete Fréchet distance (dfd())
  • Integral Fréchet distance (ifd())

Usage

>>> import numpy as np
>>> from curvesimilarities import fd  # (Continuous) Fréchet distance
>>> fd(np.array([[0, 0], [1, 3], [2, 0]]), np.array([[0, 1], [2, 1]]))
2.0

Installation

CurveSimilarities can be installed using pip.

$ pip install curvesimilarities

Documentation

CurveSimilarities is documented with Sphinx. The manual can be found on Read the Docs:

https://curvesimilarities.readthedocs.io/

If you want to build the document yourself, get the source code and install with [doc] dependency. Then, go to doc directory and build the document:

$ pip install .[doc]
$ cd doc
$ make html

Document will be generated in build/html directory. Open index.html to see the central page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

curvesimilarities-0.3.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

curvesimilarities-0.3.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file curvesimilarities-0.3.0.tar.gz.

File metadata

  • Download URL: curvesimilarities-0.3.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for curvesimilarities-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8f7cdf4d6510a85bbeb00831a8f0106781989b45eb49a248ed66b28d84777dfc
MD5 18f1f1a4b5f72806401cddb18adccc90
BLAKE2b-256 5f16dd07e074ae2e456f608be08d6320afff095e490ce0767df7b70d9d5d6aca

See more details on using hashes here.

File details

Details for the file curvesimilarities-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for curvesimilarities-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34da3165b6655c4e3be280f3a5d1feae866be8902ba0baa6fad09e057ec90774
MD5 71aa2b5b617e2c06a8f7cec5ab15abc5
BLAKE2b-256 d070ac0f38924b821adb012310f9c861acfba25f72e36085e0fb9919c1c739fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page