NestedSampling-0.1.2: A port of John Skilling's nested sampling C code to Haskell.

Safe HaskellSafe-Infered

Statistics.MiniNest

Synopsis

Documentation

class SamplingObject a whereSource

nestedSampling :: (Ord a, SamplingObject a) => [a] -> (a -> Double -> IO a) -> Int -> IO (NestedSamplingResult a)Source

nestedSampling computes the evidence Z and samples from the posterior. Args: priorSamples: a list of samples from the prior. explore: a function that evolves an object within a likelihood constraint. iterations: number of iterations to run.

choice :: [a] -> IO aSource

choice chooses uniformly at random from a list.