Skip to main content

Rigorous computation with Uncertain Number in Python

Project description

PyPI - Python Version version DOI Documentation Status license contributions welcome

Logo

PyUncertainNumber

Uncertain Number refers to a class of mathematical objects useful for risk analysis that generalize real numbers, intervals, probability distributions, interval bounds on probability distributions (i.e. probability boxes), and finite DempsterShafer structures. Refer to the informative documentation for additional details.

quick start

PyUncertainNumber can be used to easily create an UncertainNumber object, which may embody a mathematical construct such as PBox, Interval, Distribution, or DempsterShafer structure.

from pyuncertainnumber import UncertainNumber as UN

e = UN(
    name='elas_modulus', 
    symbol='E', 
    units='Pa', 
    essence='pbox', 
    distribution_parameters=['gaussian', ([0,12],[1,4])])
drapbox dynamic visualisationwing

installation

Requirement: It requires Python >=3.11

PyUncertainNumber can be installed from PyPI. Upon activation of your virtual environment, use the code below in your terminal. For additional instructions, refer to installation guide.

pip install pyuncertainnumber

features

  • PyUncertainNumber is a Python package for generic computational tasks focussing on rigourou uncertainty analysis, which provides a research-grade computing environment for uncertainty characterisation, propagation, validation and uncertainty extrapolation.
  • PyUncertainNumber supports probability bounds analysis to rigorously bound the prediction for the quantity of interest with mixed uncertainty propagation.
  • PyUncertainNumber also features great natural language support as such characterisatin of input uncertainty can be intuitively done by using natural language like about 7 or simple expression like [15 +- 10%], without worrying about the elicitation.
  • features the save and loading of UN objects
  • yields much informative results such as the combination that leads to the maximum in vertex method.

UQ multiverse

UQ is a big world (like Marvel multiverse) consisting of abundant theories and software implementations on multiple platforms. We focus mainly on the imprecise probability frameworks. Some notable examples include OpenCossan UQlab in Matlab and ProbabilityBoundsAnalysis.jl in Julia, and many others of course. PyUncertainNumber builds upon on a few pioneering projects and will continue to be dedicated to support imprecise analysis in engineering using Python.

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

pyuncertainnumber-0.0.14.tar.gz (133.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyuncertainnumber-0.0.14-py3-none-any.whl (168.0 kB view details)

Uploaded Python 3

File details

Details for the file pyuncertainnumber-0.0.14.tar.gz.

File metadata

  • Download URL: pyuncertainnumber-0.0.14.tar.gz
  • Upload date:
  • Size: 133.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyuncertainnumber-0.0.14.tar.gz
Algorithm Hash digest
SHA256 986a5e7b362bf996ff219f54855750322e2fb73dabdc19dd37d4af59bade585a
MD5 afc5990b478f0b7d269198e75d494a3b
BLAKE2b-256 e499fd194c2daec9b5ae34fe772dce861586f8aca3932a5bdd3a740c3bcacbd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyuncertainnumber-0.0.14.tar.gz:

Publisher: python-publish.yml on leslieDLcy/PyUncertainNumber

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyuncertainnumber-0.0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for pyuncertainnumber-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 67fd16a5d6f1b15affd6a7df43925b7a64db276bc347e8b9f7bca611e3ae2150
MD5 1c207365dc76fa2fe03adf1b55e498f9
BLAKE2b-256 cbca638ddbc167b08dd54f469749243a3fde237b7fc2dffd24379d65c17d4261

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyuncertainnumber-0.0.14-py3-none-any.whl:

Publisher: python-publish.yml on leslieDLcy/PyUncertainNumber

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page