OUxInfo is a high-performance Shannon entropy estimator for Python, powered by a C++ backend. It is designed for fast and scalable entropy estimation, particularly for causal inference.
- Fast Shannon entropy estimator (C++ backend)
- Python interface via pybind11
- Information-theoretic quantities for causal inference (e.g., transfer entropy, backward transfer entropy, information flow)
- Python >= 3.12 (3.13 recommended)
- GCC >= 11 (>= 13 recommended)
- OpenMP support (-fopenmp)
- PyPI
$ pip install ouxinfo- Clone this repository and
$ pip install .- pybind11
- numpy
- scipy
- matplotlib
- numba
- Boost C++ Libraries (Boost Software License, included in this repository)
- nanoflann (BSD License, included in this repository)
import numpy as np
from ouxinfo import shannon_entropy
x = np.random.normal(0.e0, 1.e0, 10000)
H = shannon_entropy(x.reshape(-1,1), k=5)This repository contains the implementation used in the following publication:
Jun Hatayama, Kento Tanaka, and Toshinori Kouchi. "Nonlinear causal relationship between separation bubbles and reflected shock wave in shock wave/turbulent boundary layer interaction based on information theory." Computers & Fluids (2026): 107016.
@article{hatayama2026nonlinear,
title={Nonlinear causal relationship between separation bubbles and reflected shock wave in shock wave/turbulent boundary layer interaction based on information theory},
author={Hatayama, Jun and Tanaka, Kento and Kouchi, Toshinori},
journal={Computers \& Fluids},
pages={107016},
year={2026},
publisher={Elsevier}
}The repository was made publicly available after publication to improve reproducibility. However, this version may differ slightly from the version used in the paper.
This project is released under MIT license.
This project depends on the following libraries;
- Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved.
- Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved.
- Copyright 2011-2025 Jose Luis Blanco (joseluisblancoc@gmail.com). Redistribution and use in source and binary forms are permitted under the BSD License.
- Copyright John Maddock 2006, 2007.
- Copyright Paul A. Bristow 2006, 2007, 2009, 2010. Use, modification and distribution are subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Boost is now bundled in the third_party/ directory and is used automatically during build.
Used for Python bindings.
These libraries are installed via pip and are subject to their respective licenses.
Development during 2025 was primarily conducted by the project owners.
Starting in 2026, the project expanded its contributor base and introduced AI-assisted "vibe coding" workflows using Claude Code.
To maintain transparency, we aim to clearly distinguish which parts of the codebase and development workflow involve AI-generated content or AI-assisted modifications. In addition, as part of our effort to share practical knowledge on AI-assisted development in the community, we provide Claude Code plan files under ./docs/plans.