/nsampling

Vanilla Nested Sampling for Python and C++

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Build Status Coverage Status

nsampling

nsampling is an implementation of the Nested Sampling algorithm [1]. It is written in C++ and has a Python interface written using pybind11 [2].

Installation

Dependencies

  • cmake (>=3.5)

Installing the python module

python setup.py install

Compiling and running the C++ example

cd examples
make
make run

Running the example Jupyter notebook

To run the Jupyter notebook you have to have numpy and matplotlib installed in addition to jupyter.

cd examples
jupyter notebook&

References

[1] D.S. Sivia with J. Skilling, Data Analysis, 2006, 2nd edition, Oxford University Press

[2] https://github.com/pybind/pybind11