Skip to main content

Models for nessai

Project description

DOI PyPI Integration tests Unit tests

nessai-models

Models for use with the nested sampling package nessai.

Included models

  • n-dimensional unit Gaussian
  • n-dimensional HalfGaussian
  • n-dimensional Rosenbrock
  • n-dimensional mixture of Gaussians
  • n-dimensional slab plus spike model
  • Gaussian mixture using data to based on this example from cpnest
  • n-dimensional Egg Box based on the version in Feroz et al. 2008
  • n-dimensional Pyramid-like model
  • n-dimensional Brewer likelihood (Skilling's "Staistical Model") from Brewer et al.
  • Linear signal plus Gaussian noise model (LinearSignal)
  • Sinusoidal signal plus Gaussian noise model (SinusoidalSignal)
  • Mixture of 1-dimensional distributions (MixtureOfDistributions)

Requirements

nessai_models requires:

  • numpy
  • scipy
  • nessai>=0.6.0

Installation

We recommend following the installation instructions for nessai and then installing nessai_models since it shares all of its dependencies with nessai.

nessai_models can be install from PyPI using

pip install nessai-models

Example usage

Below is an example of using nessai_models so configure a 4-dimensional Gaussian and then sample it using nessai.

from nessai import FlowSampler
from nessai_models import Gaussian

model = Gaussian(4)
fs = FlowSampler(model, output='example/')
fs.run()

Citing

If you use nessai_models in your work please cite the Zenodo DOI

Project details


Download files

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

Source Distribution

nessai-models-0.5.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

nessai_models-0.5.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file nessai-models-0.5.0.tar.gz.

File metadata

  • Download URL: nessai-models-0.5.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for nessai-models-0.5.0.tar.gz
Algorithm Hash digest
SHA256 ae06c8173227522cba265745aef3c68eac28f0008c6707d28c54fb6ba7af6537
MD5 6c14b3a24182fe62235807b356a8d85f
BLAKE2b-256 67f8f400efd412a1f9b4b4ad30c55e70b4a234fbf2254aa7f49c6575550cba44

See more details on using hashes here.

File details

Details for the file nessai_models-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nessai_models-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae9092f62da024f29e777d74e61f4e03d64f4dc5698902971192755cae165fe4
MD5 e516f9375940f75a3330c80e27017f51
BLAKE2b-256 d7e49cae430f752a1f0e515d801ea1080fba7e2102d201bf4e941d3ee8f57d00

See more details on using hashes here.

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