Skip to content

Commit

Permalink
Add Sampleable instance for IndelsOnTree
Browse files Browse the repository at this point in the history
  • Loading branch information
bredelings committed Oct 17, 2023
1 parent 7905082 commit 43e1235
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions haskell/Probability/Distribution/PairwiseAlignment.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ we could do something like:
The problem with this is that we can only sample the alignments for branches going away from the root.
-}

instance Dist d => HasAnnotatedPdf (IndelsOnTree t d) where
annotated_densities dist _ = undefined

instance (IOSampleable d, Result d ~ PairwiseAlignment, HasRoot t, HasBranchLengths t) => Sampleable (IndelsOnTree t d) where
sample dist = RanDistribution2 dist do_nothing

0 comments on commit 43e1235

Please sign in to comment.