gamma_index - calculation of gamma index on multi-dimensional distributions
Project description
Small Python library for calculation of gamma index.
The module offers two functions:
- gamma_matrix
This function calculates gamma index in each point for two n-dimensional distributions (with a same shape). It is not very optimized, it’s O(n x n), where n is the total number of elements of the matrix. It takes minutes to calculate the 3-D matrix for 50x50x50 distribution. Time scales roughly as n^6 (n = size of square matrix in one dimension)
- gamma_matrix_c
This functiion calculates gamma index using a slightly optimized C algorithm. It becomes more efficient than gamma_matrix with a matrix size of roughly 1000 elements for default parameters. However, the relative efficiency of this function highly depends on the parameters and values (the better agreement, the faster the algorithm is). Time scales roughly as n^3.2 (n = size of square matrix in one dimension)
- gamma_matrix_pass
This function returns a boolean matrix (passed / not passed) with optimized search only on a narrow neighbourhood of each point.
TODO
Prepare an optimized version of gamma_matrix based on layers
Add tests
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
File details
Details for the file gamma_index-0.1.3.tar.gz
.
File metadata
- Download URL: gamma_index-0.1.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 446bea38be07ef38c13dd9b6b33b1498fc5294e6b234cac2b022b13e686f5778 |
|
MD5 | 8aa3e8931afcc2e67f4fab0ffc7cf0e3 |
|
BLAKE2b-256 | fe39eeb5270702e29e1e64a8cdfa2ab931fef75a819d16a2313f48c738bf291c |