Sigma

Sigma: Uncertainty Propagation for C++ - Published in JOSS (2025)

https://github.com/qcuncertainty/sigma

Science Score: 98.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software
Last synced: 6 months ago · JSON representation ·

Repository

C++ Uncertainty Propagation

Basic Info
Statistics
  • Stars: 4
  • Watchers: 3
  • Forks: 2
  • Open Issues: 1
  • Releases: 1
Created over 1 year ago · Last pushed 7 months ago
Metadata Files
Readme Contributing License Code of conduct Citation

README.md

Sigma

DOI

Documentation

Sigma is a header-only C++ library for uncertainty propagation throughout mathematical operations on floating point values, inspired by uncertainties for Python and Measurements.jl for Julia.

Statement of Need

Scientific analysis, whether based on experiment or simulation, often uses values that are paired with some representation of their accuracy or reliability. Oftentimes, this representation is a value's standard deviation or a similar metric. The uncertainty in a value can be derived from a number of sources, including instrument accuracy, limitations from approximations, or the statistical nature of the value itself. New values resulting from operations on uncertain inputs will have uncertainties derived from the input uncertainties, but the process of propagating those relationships can become tedious and complicated. To the best of our knowledge, there is no currently maintained C++ library to facilitate this kind of uncertainty propagation. As C++ is an important language in the development of scientific software and high-performance computing, Sigma has been developed in an attempt to fill this gap.

See Background for methodological details.

Features

  • Propagate uncertainty throughout calculations
  • Track dependent variable correlation to independent variables
  • Support for common mathematical operations.
  • Limited compatibility with Eigen for linear algebra support.

See here for examples.

Installation

Sigma is header-only, so installation is not strictly required for usage. The files simply need to be locatable by your project, as well the dependencies required by Sigma itself (e.g. Eigen if support is configured). Dependency gathering, testing, building of the documentation, and installation are all handled with CMake and the CMaize Framework.

```Bash

-- Configuration Step --

Should the tests be built? BUILD_TESTING=ON Default: OFF

Should we build the documentation? BUILD_DOCS=ON Default: OFF

Include Eigen compatibility headers? ENABLEEIGENSUPPORT=ON Default: ON

cmake -Bbuild -H. \ -DCMAKECXXSTANDARD=17 \ -DCMAKEINSTALLPREFIX=/path/to/install \ -DBUILDTESTING=ON \ -DBUILDDOCS=ON \ -DENABLEEIGENSUPPORT=ON

-- Build Documentation --

cmake --build build --target sigmacxxapi

Documentation will be in ./build/html

-- Build and Run Tests --

cmake --build build --parallel cd build ctest -VV

-- Install Library --

cmake --build build --target install ```

Contributing

Acknowledgments

This work was supported by the Ames National Laboratory's Laboratory Directed Research and Development (LDRD) program. The Ames Laboratory is operated for the U.S. DOE by Iowa State University under contract # DE-AC02-07CH11358.

Owner

  • Name: QCUncertainty
  • Login: QCUncertainty
  • Kind: organization

JOSS Publication

Sigma: Uncertainty Propagation for C++
Published
February 13, 2025
Volume 10, Issue 106, Page 7404
Authors
Jonathan M. Waldrop ORCID
Chemical and Biological Sciences, Ames National Laboratory, USA
Ryan M. Richard ORCID
Chemical and Biological Sciences, Ames National Laboratory, USA, Department of Chemistry, Iowa State University, USA
Editor
Vissarion Fisikopoulos ORCID
Tags
Uncertainty Propagation

Citation (CITATION.cff)

cff-version: "1.2.0"
authors:
- family-names: Waldrop
  given-names: Jonathan M.
  orcid: "https://orcid.org/0000-0003-0442-193X"
- family-names: Richard
  given-names: Ryan M.
  orcid: "https://orcid.org/0000-0003-4235-5179"
contact:
- family-names: Waldrop
  given-names: Jonathan M.
  orcid: "https://orcid.org/0000-0003-0442-193X"
doi: 10.5281/zenodo.14852780
message: If you use this software, please cite our article in the
  Journal of Open Source Software.
preferred-citation:
  authors:
  - family-names: Waldrop
    given-names: Jonathan M.
    orcid: "https://orcid.org/0000-0003-0442-193X"
  - family-names: Richard
    given-names: Ryan M.
    orcid: "https://orcid.org/0000-0003-4235-5179"
  date-published: 2025-02-13
  doi: 10.21105/joss.07404
  issn: 2475-9066
  issue: 106
  journal: Journal of Open Source Software
  publisher:
    name: Open Journals
  start: 7404
  title: "Sigma: Uncertainty Propagation for C++"
  type: article
  url: "https://joss.theoj.org/papers/10.21105/joss.07404"
  volume: 10
title: "Sigma: Uncertainty Propagation for C++"

GitHub Events

Total
  • Create event: 13
  • Release event: 1
  • Issues event: 7
  • Watch event: 4
  • Delete event: 9
  • Issue comment event: 9
  • Push event: 41
  • Pull request review event: 6
  • Pull request review comment event: 1
  • Pull request event: 18
  • Fork event: 2
Last Year
  • Create event: 13
  • Release event: 1
  • Issues event: 7
  • Watch event: 4
  • Delete event: 9
  • Issue comment event: 9
  • Push event: 41
  • Pull request review event: 6
  • Pull request review comment event: 1
  • Pull request event: 18
  • Fork event: 2

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 114
  • Total Committers: 4
  • Avg Commits per committer: 28.5
  • Development Distribution Score (DDS): 0.14
Past Year
  • Commits: 43
  • Committers: 4
  • Avg Commits per committer: 10.75
  • Development Distribution Score (DDS): 0.372
Top Committers
Name Email Commits
Jonathan M. Waldrop r****7@g****m 98
zachcran 1****n 14
Ryan Richard r****1@g****m 1
Max Bittens 1****s 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 5
  • Total pull requests: 23
  • Average time to close issues: 3 months
  • Average time to close pull requests: 7 days
  • Total issue authors: 4
  • Total pull request authors: 4
  • Average comments per issue: 1.4
  • Average comments per pull request: 0.35
  • Merged pull requests: 22
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 5
  • Pull requests: 17
  • Average time to close issues: 3 months
  • Average time to close pull requests: 10 days
  • Issue authors: 4
  • Pull request authors: 4
  • Average comments per issue: 1.4
  • Average comments per pull request: 0.47
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • YehorYudinIPP (2)
  • ryanmrichard (1)
  • jwaldrop107 (1)
  • zachcran (1)
Pull Request Authors
  • jwaldrop107 (31)
  • zachcran (4)
  • ryanmrichard (2)
  • baxmittens (2)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels

Dependencies

.github/workflows/pull_request.yaml actions
  • actions/checkout v4 composite
docs/requirements.txt pypi
  • sphinx *
  • sphinx-autoapi *
  • sphinx_rtd_theme *
.github/workflows/merge.yaml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • peaceiris/actions-gh-pages v3 composite