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

This version

11.4

Download files

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

Source Distribution

gvar-11.4.tar.gz (1.7 MB view details)

Uploaded Source

File details

Details for the file gvar-11.4.tar.gz.

File metadata

  • Download URL: gvar-11.4.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for gvar-11.4.tar.gz
Algorithm Hash digest
SHA256 758b6475f5d64302d54c1528d4dd27804f3581345cc67f4abda744bca6e4e853
MD5 e48594901d469247e298f857c262b4be
BLAKE2b-256 d6dcf81487c4b8b85008e8a5154dd588c32b5d60552f1e25475fc4b25abd3700

See more details on using hashes here.

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