| 1 |
module MCMC.Moves.Real where |
| 2 |
|
| 3 |
import MCMC.Types |
| 4 |
import MCMC.Moves.MH |
| 5 |
import Data.Foldable (toList) |
| 6 |
|
| 7 |
foreign import bpcall "MCMC:" sliceSampleRaw :: Modifiable Double -> BuiltinBounds -> ContextIndex -> IO () |
| 8 |
sliceSample x bnds = TransitionKernel $ sliceSampleRaw x (c_range bnds) |
| 9 |
|
| 10 |
foreign import bpcall "MCMC:" scaleGroupsSliceRaw :: [Double] -> [Double] -> ContextIndex -> IO () |
| 11 |
|
| 12 |
foreign import bpcall "MCMC:" scaleGroupsProposalRaw :: [Double] -> [Double] -> ContextIndex -> IO LogDouble |
| 13 |
|
| 14 |
scaleGroupsSlice xs ys = TransitionKernel $ scaleGroupsSliceRaw (toList xs) (toList ys) |
| 15 |
|
| 16 |
scaleGroupSlice xs = scaleGroupsSlice xs [] |
| 17 |
|
| 18 |
scaleGroupsProposal xs ys = Proposal $ scaleGroupsProposalRaw (toList xs) (toList ys) |
| 19 |
|
| 20 |
scaleGroupProposal xs = scaleGroupsProposal xs [] |
| 21 |
|
| 22 |
scaleGroupsMH xs ys = metropolisHastings $ scaleGroupsProposal xs ys |
| 23 |
|