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.13.tar.gz (131.1 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.13-py3-none-any.whl (164.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyuncertainnumber-0.0.13.tar.gz
  • Upload date:
  • Size: 131.1 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.13.tar.gz
Algorithm Hash digest
SHA256 6def2a1da75aa79df869ddf927cb75292a4e59e31eeb2d9b7506002c97dca38b
MD5 2013977e45202d14c484e244f25ad952
BLAKE2b-256 0cf47c5801939db8bfc759030b4fa841eeaf680c760722e193f75d5909ef7f86

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyuncertainnumber-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 3aff85a0b683aa7bb75e4d53a3bb64ec8d405b7312338af414130cfba40f2a7f
MD5 342613036cc0e4b58a196b7d0cdbeb0c
BLAKE2b-256 05bcb68befa98af63c75a2bed89baaeede8bd040de465960f14f4aa8306dbc60

See more details on using hashes here.

Provenance

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