Debian Codegraph @

haskell/MCMC/Moves/Tree.hs

raw
1 module MCMC.Moves.Tree where
2
3 import MCMC.Types
4 import Foreign.Vector
5 import Tree
6
7 foreign import bpcall "MCMC:" walkTreePathRaw :: Modifiable t -> ContextIndex -> EVector Int
8 walk_tree_path tree c = vectorToList $ walkTreePathRaw tree c
9
10 -- This is "unsafe" because it doesn't update alignments
11 foreign import bpcall "MCMC:" fnprUnsafeProposalRaw :: Modifiable t -> Int -> ContextIndex -> IO LogDouble
12 fnprUnsafeProposal tree branch = Proposal $ fnprUnsafeProposalRaw tree branch
13
14 foreign import bpcall "MCMC:" walkTreeSampleNNIRaw :: Modifiable t -> ContextIndex -> IO ()
15 walkTreeSampleNNI tree = TransitionKernel $ walkTreeSampleNNIRaw tree
16
17 foreign import bpcall "MCMC:" walkTreeSampleNNIandBranchLengthsRaw :: Modifiable t -> ContextIndex -> IO ()
18 walkTreeSampleNNIandBranchLengths tree = TransitionKernel $ walkTreeSampleNNIandBranchLengthsRaw tree
19
20 foreign import bpcall "MCMC:" walkTimeTreeSampleNNIandNodeTimesRaw :: Modifiable t -> ContextIndex -> IO ()
21 walkTimeTreeSampleNNIandNodeTimes tree = TransitionKernel $ walkTimeTreeSampleNNIandNodeTimesRaw tree
22
23 foreign import bpcall "MCMC:" walkTreeSampleBranchLengthsRaw :: Modifiable t -> ContextIndex -> IO ()
24 walkTreeSampleBranchLengths tree = TransitionKernel $ walkTreeSampleBranchLengthsRaw tree
25 foreign import bpcall "MCMC:" sampleSPRAllRaw :: Modifiable t -> ContextIndex -> IO ()
26 sampleSPRAll tree = TransitionKernel $ sampleSPRAllRaw tree
27
28 foreign import bpcall "MCMC:" sampleSPRNodesRaw :: Modifiable t -> ContextIndex -> IO ()
29 sampleSPRNodes tree = TransitionKernel $ sampleSPRNodesRaw tree
30
31 foreign import bpcall "MCMC:" sampleSPRFlatRaw :: Modifiable t -> ContextIndex -> IO ()
32 sampleSPRFlat tree = TransitionKernel $ sampleSPRFlatRaw tree
33
34