pydist2 is a library that provides a set of methods for calculating distances between observations.
Project description
pydist2
pydist2 is a python library that provides a set of methods for calculating distances between observations. There are two main classes:
pdist1 which calculates the pairwise distances between observations in one matrix and returns a distance matrix.
pdist2 computes the distances between observations in two matrices and also returns a distance matrix.
Usage
pdist1(P, metric = "euclidean",)
pdist2(P, Q, metric = "minkowski", exp = 3)
Arguments:
two matrices P and Q.
metric: The distance function to use.
exp: The exponent of the Minkowski distance.
Installation
The pydist2 library is available on Pypi. Thus, you can install the latest available version using pip:
$pip install pydist2
Supported Python versions
pydist2 has been tested with Python 3.7 and 3.8.
For more information, please checkout the documentation which is available at readthedocs.
This program and the accompanying materials are made available under the terms of the MIT License.
History
0.0.1 (2021-03-04)
First release on PyPI.
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
Built Distribution
Hashes for pydist2-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8517556aae0c1cf2328d28db7f06319541dbdbb4d4d63db470b6b905dd29ec07 |
|
MD5 | 53b9b95bb3891231e8cb1dbf3c03d974 |
|
BLAKE2b-256 | 5372c30d0e378a6fd5bbc0019bf9d5db2c927c5f1501d4b97c446b531f6e5c9a |