ancIBD.hmm
Methods for fwd_bwd calculations. With Factory methods. Be careful with c functions, they need exact type input. Contains Sub-Classes, as well as factory Method. @ Author: Harald Ringbauer, 2019, All rights reserved
Module Contents
Functions
|
Simple Python Implementation of forward / bacdkward to compare |
Print the current Memory Usage in mB |
|
|
Return fwd_bwd function |
- ancIBD.hmm.fwd_bkwd_p(e_prob, t_mat, in_val=0.0001, full=True, output=True)
Simple Python Implementation of forward / bacdkward to compare optimized c versions to. Uses standard definitions. Takes emission and transition probabilities Input: Emission Matrix e_prob0 [l,k] NORMAL SPACE Transition Matrix t_mat [l,k,k] NORMALIZED and initialized fwd and bwd probabilities. All in log Space output: Whether to print out output useful for debugging/monitoring Output: post, fwd0, bwd0, tot_ll; if full then only post
- ancIBD.hmm.print_memory_usage()
Print the current Memory Usage in mB
- ancIBD.hmm.load_fwd_bwd_func(h_model='FiveState')
Return fwd_bwd function