FrechetLib
A library for computing Frechet distances between curves, and other associated quantities. This is a Python version of the FrechetDist julia package.
Development Status
This library is in an alpha state. Most functions have some degree of testing, but not extensively.
Examples
import time
from frechetlib.continuous_frechet import frechet_c_approx
from frechetlib.data import FrechetDownloader
downloader = FrechetDownloader()
big_curve_1 = downloader.get_curve("11/poly_a.txt")
big_curve_2 = downloader.get_curve("11/poly_b.txt")
print(big_curve_1.shape)
print(big_curve_2.shape)
# NOTE Run twice to factor out the compilation time from the timing.
frechet_c_approx(big_curve_1, big_curve_2, 1.01)
print("Starting")
start = time.perf_counter()
res, morphing = frechet_c_approx(big_curve_1, big_curve_2, 1.01)
end = time.perf_counter()
print("Approximated Frechet distance: ", morphing.dist)
print("Time taken (s): ", end - start)
API
The package API is currently minimal and undocumented for now. See the test cases for usage examples. This will be filled out more later.
Metadata
Release files for frechetlib 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| frechetlib-0.1.1.tar.gz | 17.7 kB | Without provenance | Details for frechetlib-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| frechetlib-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for frechetlib-0.1.1-py3-none-any.whl |
Total release size: 36.7 kB
Release files / frechetlib-0.1.1.tar.gz
| Download URL | frechetlib-0.1.1.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8f01851a129698ed8b63a9d16b5a25717a4981a49498bf5dc6618c56ae64aba
|
|
BLAKE2b-256 checksum How to use checksums |
e182c06158ecc5f9a2fa9359a5376a6fd78605dd3698514b91845e64281ade18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.0 Linux/6.5.0-1016-azure
|
Release files / frechetlib-0.1.1-py3-none-any.whl
| Download URL | frechetlib-0.1.1-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e11846572de4f8c131f4357e3b65ec016a45a3401590a930878b722bdfe4b641
|
|
BLAKE2b-256 checksum How to use checksums |
50dc70e847f19d86d67f1b563780c43a0fb31d8a787989c31052a3b0bfe15781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.0 Linux/6.5.0-1016-azure
|
Security for frechetlib 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.