Giter Site home page Giter Site logo

multinest.jl's Introduction

MultiNest.jl

MultiNest wrapper for the Julia language.

Build Status

Installation

The package does not contain MultiNest itself (as you need to register before you can obtain a copy), so you will need to download and build shared MultiNest libraries separately.

Afterwards, you can get a copy of MultiNest.jl using Julia's package manager:

Pkg.add("MultiNest")

Usage

Since MultiNest, even though bundled as a library, is virtually an external command, the MultiNest.jl package follows the semantics of Julia's built-in external commands.

The MultiNest module can be loaded into Julia with

using MultiNest

It exports a single function new function, nested(), that will create a MultiNest configuation. Like other external commands, it can subsequently be invoked with Julia's run() function.

In it's purest form, nested() is called with the log-likelihood function you want to investigate, the dimension of the parameter space, and the output root:

using MultiNest

# define loglike
# ...

# generate MultiNest call
nest = nested(loglike, 2, "chains/example-")

# run MultiNest
run(nest)

All of MultiNest's additional options can be passed to nested() as keyword arguments. Please see the classical eggbox example for more information.

It is possible to pass additional arguments to your log-likelihood and dumper functions. See the eggbox with context example for more information on context passing.

If Julia cannot find the MultiNest libraries by default, you can make their location known as follows:

# make library location known
push!(Libdl.DL_LOAD_PATH, "/path/to/MultiNest")

# now load MultiNest module
using MultiNest

multinest.jl's People

Contributors

ntessore avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.