Python implementation of "An efficiently computable metric for comparing polygonal shapes" (Arkin et al.)
Project description
Turning Function
This module contains Python bindings to a C-implementation of "An efficiently computable metric for comparing polygonal shapes" (Arkin et al., 1991).
Installation
pip install turning_function
Usage
import turning_function
import random
def random_shape(num_points: int):
return [(random.random(), random.random()) for _ in range(num_points)]
shape_a = random_shape(turning_function.max_points)
shape_b = random_shape(42)
distance = turning_function.distance(shape_a, shape_b)
print('Distance: ', distance)
License
The original source has this disclaimer:
Implementation (c) Eugene K. Ressler 91, 92 This source may be freely distributed and used for non-commercial purposes, so long as this comment is attached to any code copied or derived from it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for turning_function-0.0.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e270b5b76820a6d6e48a4f01a890315826aa7c9e48ac5aed5b09023448d16d0 |
|
MD5 | d2ed24c5c769e1dc94d2540eb28082e5 |
|
BLAKE2b-256 | 80b5297af4141beea386bfd71db1a0cfd501c62718f56772695cb0dcb7512832 |
Close
Hashes for turning_function-0.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be0b85c70a0dc1dd4b3ee6358541dcee936abf43e5a5a059082e325c9ce88a5d |
|
MD5 | 0be2e3b9dc9e4bef197149a017f60c36 |
|
BLAKE2b-256 | 007e623cb2973f917f27271ce6bd1c34b9c2c7b579a20e40257a6860f186b90c |
Close
Hashes for turning_function-0.0.2-cp310-cp310-macosx_10_15_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed4fd706202ea0eb208fcd0d22f2f0acb23736aa7bd0e99e32b5ffc5c99eef66 |
|
MD5 | 7b092f1dd285651c2c71c68da1a01ecd |
|
BLAKE2b-256 | cf900431ddaf41df276fa9e809f5d7f02b18ea93c6107ab5f5fcb9884e877213 |
Close
Hashes for turning_function-0.0.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb76ab39d61b06812b906dee72a163968bd113f8619b80d93811acf224bfee6a |
|
MD5 | 7c0be957a494a9e6f4c0aab842116673 |
|
BLAKE2b-256 | 1320c0e597e367b22910bd2636a74de06a757c21f6c0c04859717717a0895145 |
Close
Hashes for turning_function-0.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aef0c6aacbbf1f61baf647f11479b8fe7249f00a4773a250493b36376c32a35d |
|
MD5 | 247c71bb939afcd9bfeda15b598d6bf8 |
|
BLAKE2b-256 | 679f3e6420bd14f21f4d3f7b88b3369c27cc4a1837dc2f301ad3d65914322240 |
Close
Hashes for turning_function-0.0.2-cp39-cp39-macosx_10_15_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4c0b82c121b1f62f5b2c1670b4c664df3dbd388ac56fad9979db85c4567f54c |
|
MD5 | 5d17507ebaddd3ec6c0dfee52cde9dc4 |
|
BLAKE2b-256 | d1e5b3416fb57373c6aab793081da234b5970f151b29e1c53aeb627b235a3dc3 |
Close
Hashes for turning_function-0.0.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c880b235eb18abbaf6faf3bc5edc0a82bddfa74cca6b87b0b6f205ed8edb59c9 |
|
MD5 | ff3381f011fdb577bbff3fedf3f727ff |
|
BLAKE2b-256 | fbb607a78e907b0d9d0c9723fbb4f6770797793c3b0f72638d961c44751bb127 |
Close
Hashes for turning_function-0.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f264a3b7adfea8edef48171e6d567b0c4c9de932464bd3f353f0594d85a1d92 |
|
MD5 | b1ec7edf16a5db5b903d7f28e547f3a0 |
|
BLAKE2b-256 | f7e843708cd4f66a18cd9bc5257ccaadce61032c4857d4759d1233b5ca78132d |
Close
Hashes for turning_function-0.0.2-cp38-cp38-macosx_10_15_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 607e6326568e9c90c7c2d8ba15783332f84b875be1d93513237b104596f81775 |
|
MD5 | 05a1071bd31251b7483475b20f43ab1f |
|
BLAKE2b-256 | cd56646580ef6042b5df8c2ab2ecba2c52464afd911304bd53ff4878b2a091d2 |
Close
Hashes for turning_function-0.0.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdb5d9436e0f6dffb893daac8ada3d43249b55899040e42f798ada6e8acb5ca6 |
|
MD5 | 67af45bf1abe6d3f67e1622010756713 |
|
BLAKE2b-256 | 0a4acdb1803cb89bdcd57164767625c2e06410834a7464e2682f2fce8a6c09ef |
Close
Hashes for turning_function-0.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f5e6232221e65252284c5608c64b54668dcabe2ff2b5c50e8198b25ad06f038 |
|
MD5 | bcc701c7b40023cdc5163c78f0835be4 |
|
BLAKE2b-256 | 7cb16102320fee6b5b5c4c283b9de8be7a17e3d131d5e9d873c9173044c9c8fb |
Close
Hashes for turning_function-0.0.2-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05332b4416141c2056edce890cfc2bda48bedbade446d9a4b1abcface4e6d394 |
|
MD5 | 789e0df6c17f9379ff6a0f1842a39551 |
|
BLAKE2b-256 | 6395ac2609e4e0733ca25e5320aa8444abb514c0174d4fbc0e7567ee8c547d28 |