Package that implements the isotonic estimator for Wicksell's problem.
Project description
This package implements the isotonic estimator for Wicksell's problem given in the paper Adaptive and Efficient Isotonic Estimation in Wicksell's Problem.
How to use the package? After installing the package via the usual command line pip install, the user user can import the package using the lines of code:
from isotonic_estimator_lib import isotonic_estimator
then, having a vector of observed samples Z, the user can obtain the isotonic estimator together with its plot by running:
max_xs = max(Z)
res = isotonic_estimator.estimator(max_xs,Z)
where max_xs is needed for plotting purposes only. The resulting estimated cdf F of the hidden radii distribution is now stored into res. The resulting plot should look as follows:
.. image:: https://github.com/francescogili/plots_isotonic_estimator_lib/blob/main/test.png?raw=true :height: 300px :width: 170px :scale: 100 % :align: center
We have also designed a test application in tkinter which is included in the package and where the user can visualize the performance of the isotonic estimator. After running the following code:
from isotonic_estimator_lib import tester_quality
tester_quality.tester()
a pop-up window will open asking to input a test hidden cdf F which can be chosen between the following set of distributions: "gamma, chi, betaprime, pareto, lognormal, truncnorm, arcsine, fatiguelife, weibull". The input is case sensitive. If the user gives non acceptable inputs, the tester will automatically produce an error. The suggested number of samples is 200, and it is not recommended to choose a value higher than 1000. The tester will produce some plots that illustrate the performance of the isotonic estimator. The resulting plot should look like this:
.. image:: https://github.com/francescogili/plots_isotonic_estimator_lib/blob/main/gamma.png?raw=true :height: 170px :width: 200px :scale: 100 % :align: center
.. image:: https://github.com/francescogili/plots_isotonic_estimator_lib/blob/main/pareto.png?raw=true :height: 170px :width: 200px :scale: 100 % :align: center
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 isotonic_estimator_lib-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f77bbb0a2420fe2c532589fe86dc1a5f73941992223e255473969b993d228490 |
|
MD5 | ba8a78cc003b9ae04f15f859184f7463 |
|
BLAKE2b-256 | 16c4afb7f61583d1f2a31499e28e6018d34eccbfb34e0d5b1b30b3c280894d2a |
Hashes for isotonic_estimator_lib-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11d79e59fcc7a58d34c49c2b62a563a54a42be0ca42470f1ea47597d1b47bbb9 |
|
MD5 | ba3bff8f0ef59ae8d74e55e6587cf71e |
|
BLAKE2b-256 | 8f79f6b3b96b155de9000724374482f9e50cc6021b9561ebedcd0757aa4311ab |