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 :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 :height: 170px :width: 200px :scale: 100 % :align: center
.. image:: https://github.com/francescogili/plots_isotonic_estimator_lib/blob/main/pareto.png :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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | facaaedc2c5f3c771e64177e57c1399a302da801b986c75a802fed792bb9a790 |
|
MD5 | 45201d4448c300df9deb330cec94f08c |
|
BLAKE2b-256 | 79a7e20c6fd9c183bad97936fdd0719136064e929dfed2cf46c119b1cb595ce0 |
Hashes for isotonic_estimator_lib-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ca0d3372cfa8fe88de62d6893663647a14629802eca14653389af4a7ed2e189 |
|
MD5 | 6e9ec75b469ff4b73e06526d5ef1f71b |
|
BLAKE2b-256 | 1f82c52ce20b39a9226447b29da79b00bb8803689f592c068741c71073f5dc78 |