ptiede / HypercubeTransform.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HypercubeTransform

Stable Dev Build Status codecovCode Style: Blue ColPrac: Contributor's Guide on Collaborative Practices for Community Packages

We love to use nested sampling with the Event Horizon Telescope (EHT), but it is rather annoying to constantly write the prior transformation. This package will do that for you. It does this by first looking at the types of the distribution and constructing a transformation function.

MORE TO COME

Example

using Distributions
using HypercubeTransform
priors = (a=Normal(0.0 ,5.0), b = Uniform(-10.0, 10.0), c=Product([Cauchy(), Gamma()]))
hc = ascube(priors)

transform(hc, rand(length(priors)))

About

License:MIT License


Languages

Language:Julia 100.0%