Skip to main content

Utilities for manipulating correlated Gaussian random variables.

Project description

This package facilitates the creation and manipulation of arbitrarily complicated (correlated) multi-dimensional Gaussian random variables. The random variables are represented by a new data type (gvar.GVar) that can be used in arithmetic expressions and pure Python functions. Such expressions/functions create new Gaussian random variables while automatically tracking statistical correlations between the new and old variables. This data type is useful for simple error propagation, but also is heavily used by the Bayesian least-squares fitting module lsqfit.py to define priors and specify fit results, while accounting for correlations between all variables. Documentation can is in the doc/ subdirectory: see doc/html/index.html or look online at <https://gvar.readthedocs.io>.

These packages use numpy for efficient array arithmetic, and cython to compile efficient code. gvar uses automatic differentiation to track covariances through arbitrary arithmetic.

Information on how to install the components is in the INSTALLATION file.

To test the libraries try make tests. Some examples are give in the examples/ subdirectory.

gvar version numbers have the form major.minor.patch where: incompatible changes are signaled by incrementing the major version number, the minor number signals new features, and the patch number signals bug fixes.

Created by G. Peter Lepage (Cornell University) 2008
Copyright (c) 2008-2020 G. Peter Lepage
https://zenodo.org/badge/37556070.svg

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gvar-13.0.2.tar.gz (1.0 MB view hashes)

Uploaded Source

Built Distributions

gvar-13.0.2-cp312-cp312-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

gvar-13.0.2-cp312-cp312-musllinux_1_1_x86_64.whl (7.7 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

gvar-13.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.8 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

gvar-13.0.2-cp312-cp312-macosx_11_0_arm64.whl (1.3 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

gvar-13.0.2-cp312-cp312-macosx_10_9_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

gvar-13.0.2-cp311-cp311-win_amd64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

gvar-13.0.2-cp311-cp311-musllinux_1_1_x86_64.whl (7.9 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

gvar-13.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

gvar-13.0.2-cp311-cp311-macosx_11_0_arm64.whl (1.3 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

gvar-13.0.2-cp311-cp311-macosx_10_9_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

gvar-13.0.2-cp310-cp310-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

gvar-13.0.2-cp310-cp310-musllinux_1_1_x86_64.whl (7.3 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

gvar-13.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

gvar-13.0.2-cp310-cp310-macosx_11_0_arm64.whl (1.3 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

gvar-13.0.2-cp310-cp310-macosx_10_9_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

gvar-13.0.2-cp39-cp39-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

gvar-13.0.2-cp39-cp39-musllinux_1_1_x86_64.whl (7.3 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

gvar-13.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

gvar-13.0.2-cp39-cp39-macosx_11_0_arm64.whl (1.3 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

gvar-13.0.2-cp39-cp39-macosx_10_9_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

Supported by

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