No project description provided
Project description
PyRecombine
Performs a dynamic Caratheodory process and takes a weighted collection of vectors and identifies by pointers, a subset of minimal cardinality among the vectors and new weights so both empirical measures have the same mean. Software written by Terry Lyons, based on algorithms developed jointly with Christian Litter and then with Maria Tchernychova 2008-2020. Here minimal is a local notion and means it cannot be further reduced. There may be other noncomparable cubature sets with fewer points.
The library has a robust and stable C interface and even old dlls from 2008 with the old algorithm still run.
Measures are represented by an array of null pointers (pseudo-points) and an array of equal length of positive doubles adding to 1.
; the calling program provides a feature map that converts each null pointer to a vector, and so recombine never knows or needs to know the real types of the points.
Recombine returns the indexes of the points that should remain and new positive weights so that the mean of these remaining points with the new weights is the same as the old mean.
The new list of survivors is never more than D+1
long where D
is the dimension of the vector space.
If there are N
points in D
dimensions the sequential complexity of this algorithm is less than ND + log_2(N/D) D^3
.
This reflects the order of magnitude improvement in the algorithm developed with Maria Tchernychova; the algorithm with Litterer had complexity ND + log_2(N/D) D^4
although it is quicker for small problems.
The interface remains the same.
The ND comes from touching the points, and log_2(N/D) D^3
from performing log_2(N/D)
complex SVD type calculations on Dx2D
matrices.
This is a linear programming problem under the surface, but the algorithm here has fixed complexity.
In many of the problems we are interested in N
is approximately D^2
so the cost is (to logarithms) equated with the cost of touching the points.
The algorithm uses MKL (LAPACK) to do most of the linear algebra, although there is a part that is bespoke. The operations benefit from some parallelism via OMP. Say (export OMP_NUM_THREADS=8). The log factor is truly sequential.
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 Distribution
Built Distributions
Hashes for pyrecombine-1.0.0-cp313-cp313-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fc00fe335ade2824de7ff37032e4d4e6dea48216dde991029bcdfc85b4a5b11 |
|
MD5 | 700ce8e87cf7b346a651989495b089a8 |
|
BLAKE2b-256 | c5d6aa722401be1ac4dc63dbc2ccda9a8849ca9521b559d6021c411ac2c757ec |
Hashes for pyrecombine-1.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8a7bb645aba0dff1053007276e681c7dfb4144498610c5407e6ebaf36cee0aa |
|
MD5 | ba48eac52559dddac7efc9d206714246 |
|
BLAKE2b-256 | 583773dc58b8fb90e7966d90ca0d0f98a18058ab16e9721f62d999a8923c94ed |
Hashes for pyrecombine-1.0.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a9b4c5085239ca9a8280b1b04cd5552eda2a81299a31aaf84ba040ace000f9d |
|
MD5 | 4e5e83872da13746773394c7c81d55a6 |
|
BLAKE2b-256 | 6be1e488590b36ebf999cdf419c1fd2c3d5aa888790ac4c7b491a5ad03f3f0d8 |
Hashes for pyrecombine-1.0.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e042ad6bb1365d686ba2c879a76393e7cc263bb73734b300b3bbbfe3fecdb04e |
|
MD5 | 35c155d99dbd9f1e8aa8b59a1f3dc529 |
|
BLAKE2b-256 | 04920bfabcc8943b2392380a2b91d047d9384f652a6e385627f8692b16ba5b8e |
Hashes for pyrecombine-1.0.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 853db8add5a6bd501da63c2d302e11efbb68aa1d40a6903e9053aa425e4cfd23 |
|
MD5 | 3e3c817517ecb037e2f7bd613a0a5452 |
|
BLAKE2b-256 | 8d4a2c73f2904bfa881b01c0f7cd5f2bbf2d1e3457ae496dbc670acda422a2cd |
Hashes for pyrecombine-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 964d986f274bb17caf8283a87383b728c17511b30041d7f2be67a091a60318bc |
|
MD5 | 29e414069b5abf4c0e6a645f4797bc40 |
|
BLAKE2b-256 | 4f178a9f41704be7e3fc7502dfaeb1ac68701e02553f3c437bbb4c770b46eb20 |
Hashes for pyrecombine-1.0.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c23c1eac6766e58d358445d5bf049fc7aa6e95ed989cec5e00cacd8b3d30b801 |
|
MD5 | c0d10750a91c0fbc7f8d6d806b3c1bb3 |
|
BLAKE2b-256 | c34a746515a4df2c895e003d6995599cb245e4c6540955bca73781d6669ccfef |
Hashes for pyrecombine-1.0.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e34c92732ee1dc2c9c118c20ec4c9075288acd20d3baf895c10cf405669a299c |
|
MD5 | d7658e71385c2fc48c78d5e7d460a979 |
|
BLAKE2b-256 | 8481148cbfe1afc0e5ea2ebe6bc7e07bd08ce0c16bb691a2b2b817b351f80233 |
Hashes for pyrecombine-1.0.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8304e4c4c4999b812ea133a1d3faf3259ece48b96d0e27e5d8f18a79737ac1b |
|
MD5 | f2e6642a02158366d1cf893765f8aa3d |
|
BLAKE2b-256 | 7bc0b30e7ae90fa8af9148ac097c128cce5cb9e9ebe6cc757c93acceac4e86aa |
Hashes for pyrecombine-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ec3d7a90791728fc988074ac6b36847eb140c84024eda1481bfeebfb0b9ad11 |
|
MD5 | d644c742a1ad14e376dc405bb5d2a454 |
|
BLAKE2b-256 | b2604db9378cdb9cd1688eea5227aecd711cce128178d6b435946e2b6eea3a03 |
Hashes for pyrecombine-1.0.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 138df51ea6cea6da95900d334a64e5bdcdde18812cacc60cbf270ad080fcd0a7 |
|
MD5 | 9c9767f331930186af6c292d91df0b4b |
|
BLAKE2b-256 | bf2a55c56cfb0d20b7ae07aa8b76a073db4ae090129a075a83b45f12e4278053 |
Hashes for pyrecombine-1.0.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e5f654629e0fc7e1bdabdefe79923d1f64d3f850c4395130180e0a766002389 |
|
MD5 | 944d82719c71041168021bfcff67f8b6 |
|
BLAKE2b-256 | fb305611f9479c89cd8b9f0a2af4f128795c65585f6ee7f04cf93ce94987e7a3 |
Hashes for pyrecombine-1.0.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 735cd0e587fc65196b263831c7afbffb6102aab40371b367f0765d8d25c2f5e1 |
|
MD5 | be98cac9ddc80761de7b99e99b9ce29b |
|
BLAKE2b-256 | 519c9323fb06b13b516c47eb8f17ef0835b193b6eb16a9935af1c8082283c23e |
Hashes for pyrecombine-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ced8781ab30d6474e4fe25b51511b7765dd49a3aab0ed9dddc80eb73cb7cf5f |
|
MD5 | e5530bcf0cdbd4a9910d95731de5aec6 |
|
BLAKE2b-256 | 4aa017d986c40429e907477063e005798dda234183021208ef39f3dee3d37013 |
Hashes for pyrecombine-1.0.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af991a66f5f2a1c63969730ff2c48b57d3ae6cfeb7dadd115f9b1012d2bae757 |
|
MD5 | 0a27f1d0f6c60fb3899b82bc350a7268 |
|
BLAKE2b-256 | 0ede20246fb3f9f826bf09f250f98e32e4c731ce74e0f07aa61bfe21c69dcc5f |
Hashes for pyrecombine-1.0.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7005ed746b7b5a90c88cdc3afd37f7e86ef5a3d96a9c09eabb690e9bfba7fd57 |
|
MD5 | bc06c12530f022579705f03757bca0b2 |
|
BLAKE2b-256 | 3b47e952729c49d57cafa4203410d08e5364826b63e1b14506b81f7151a5723b |
Hashes for pyrecombine-1.0.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c450ce2929cf51e7d01b1da7d28deceb7c38371e7288a1e7b85d80d7f622f09d |
|
MD5 | 988bc2933393631b5fbc3267fdedef1c |
|
BLAKE2b-256 | 8b5adb2b480736db087fc6b81dba18ee0e166bbeac35509d069fd4e1c91f8af1 |
Hashes for pyrecombine-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94b77d6907d66bdee3e80d379944e4c14634ec4927c413f59440cce15722333f |
|
MD5 | 4bc178b0ba85be0a9279c37158d66004 |
|
BLAKE2b-256 | db7c57c13aac3aca52f24e3735fceffb71330d27540d48632de1fd181651a6d5 |
Hashes for pyrecombine-1.0.0-cp39-cp39-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49c51f144f9a421306a37c241c4dc4a80cb2fd3db0131855564f5bf55ec249bf |
|
MD5 | 5ff8ffaaa54edab92c7b45b43a4158d2 |
|
BLAKE2b-256 | 537d04be80024cac3e16841ee60f8a6174c85dc2ba1011e2076931cd0d41d396 |
Hashes for pyrecombine-1.0.0-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 270a62f91088fc27457f36c94fda21a9758eba9b5f21be8d18bc959ab08905ae |
|
MD5 | c888a9f199330db27e1927a0b1de8fbf |
|
BLAKE2b-256 | e07d29f7f4a1d0b5b9395aa5039f9481e161572a6f430508270ef5c656ef0b14 |