Skip to main content

Rigorous computation with Uncertain Number in Python

Project description

PyPI - Python Version version 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.9.tar.gz (125.8 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.9-py3-none-any.whl (158.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyuncertainnumber-0.0.9.tar.gz
  • Upload date:
  • Size: 125.8 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.9.tar.gz
Algorithm Hash digest
SHA256 7a10f8fd247cb551cef22305136a7bb5079c467d3f85ef14272c8d30349440b2
MD5 806990b23b8a68344a8b8d28db8c978e
BLAKE2b-256 582e99d7af1d2877201825d324494924927cca3044398013a39b3e819add2ded

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyuncertainnumber-0.0.9.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.9-py3-none-any.whl.

File metadata

File hashes

Hashes for pyuncertainnumber-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9f2f86259e262f929a482426d71518bbbfb9ad0a34a26c018658c26fbaed1d24
MD5 6d0594e6bf551b6efd9805091aad3270
BLAKE2b-256 9d73c61feace9bab51067206ff622fee33dad72e33a2f4793ffe2bbd1da2b0cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyuncertainnumber-0.0.9-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