Metadata-Version: 2.1
Name: pba
Version: 0.90.1
Summary: Probability Bounds Analysis in Python
Home-page: https://github.com/Institute-for-Risk-and-Uncertainty/pba-for-python
Author: Nick Gray
Author-email: Nick Gray <ngg@liv.ac.uk>
License: MIT License
        
        Copyright (c) 2023 Nick Gray
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Documentation, https://pba-for-python.readthedocs.io/en/latest/
Project-URL: Repository, https://github.com/Institute-for-Risk-and-Uncertainty/pba-for-python
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: numpy >=1.26.2
Requires-Dist: scipy >=1.11.4
Requires-Dist: matplotlib >=3.8.2

.. image:: https://readthedocs.org/projects/pba-for-python/badge/?version=latest
    :target: https://pba-for-python.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status


PBA
========

PBA is a probability bound analysis library for Python that allows one to create and calculate with probability distributions, intervals, and probability boxes (p-boxes) within Python.

Probability distributions can be specified using ``pba.distname(**args)`` where *distname* is any of the named distributions that scipy.stats supports.  For instance,   pba.N(0,1) specifies a Normal distribution with mean 0 and variance 1. P-boxes can be created by using interval arguments for these distributions.  Intervals can be created using ``pba.I(left, right)`` where *left* and *right* are expressions for the lower and upper limits of the interval.

Features
--------

- Interval arithmetic (see https://en.wikipedia.org/wiki/Interval_arithmetic)
- P-box arithmetic (see https://en.wikipedia.org/wiki/Probability_bounds_analysis)

Installation
-------------

Install pba by running

    pip install pba

Contribute & Support
--------------------

If you are having issues or would like to help with development or have intersting use cases, please let us know.
You can email ngg@liv.ac.uk.

License
--------

The project is licensed under the MIT License.
