Copyright | (c) Dominik Schrempf 2020 |
---|---|
License | GPL-3.0-or-later |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Creation date: Thu May 14 20:26:27 2020.
Synopsis
- genericContinuous :: (ContDistr d, ContGen d) => d -> (a -> Double -> a) -> Maybe (Double -> Double) -> ProposalSimple a
- genericDiscrete :: (DiscreteDistr d, DiscreteGen d) => d -> (a -> Int -> a) -> Maybe (Int -> Int) -> ProposalSimple a
Documentation
:: (ContDistr d, ContGen d) | |
=> d | Probability distribution |
-> (a -> Double -> a) | Forward operator, e.g. (+), so that x + dx = x'. |
-> Maybe (Double -> Double) | Inverse operator, e.g., |
-> ProposalSimple a |
Generic function to create proposals for continuous parameters (Double
).
:: (DiscreteDistr d, DiscreteGen d) | |
=> d | Probability distribution. |
-> (a -> Int -> a) | Forward operator, e.g. (+), so that x + dx = x'. |
-> Maybe (Int -> Int) | Inverse operator, e.g., |
-> ProposalSimple a |
Generic function to create proposals for discrete parameters (Int
).