Safe Haskell | Safe-Infered |
---|
- plus :: Double -> Double -> Double
- data NestedSamplingResult a = NestedSamplingResult {
- nsLogZ :: Double
- nsLogZdelta :: Double
- nsInfoNats :: Double
- nsSamples :: [a]
- class SamplingObject a where
- nestedSampling :: (Ord a, SamplingObject a) => [a] -> (a -> Double -> IO a) -> Int -> IO (NestedSamplingResult a)
- choice :: [a] -> IO a
- floatRatio :: Int -> Int -> Float
- getLogWidth :: Int -> Double
Documentation
data NestedSamplingResult a Source
NestedSamplingResult | |
|
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.
floatRatio :: Int -> Int -> FloatSource
getLogWidth :: Int -> DoubleSource