Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 3 | 0.958 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 75 | Bio/HMM/DynamicProgramming.py |
2 | 10 | 141 | Bio/HMM/DynamicProgramming.py |
| ||||
# now loop over the letters in the state path for main_state in state_letters: # calculate the forward value using the appropriate # method to prevent underflow errors forward_value = self._forward_recursion(main_state,i,forward_var) if forward_value is not None: forward_var[(main_state,i)] = forward_value # -- termination step - calculate the probability of the sequence |
| ||||
# now loop over the letters in the state path for main_state in state_letters: # calculate the backward value using the appropriate # method to prevent underflow errors backward_value = self._backward_recursion(main_state,i,backward_var) if backward_value is not None: backward_var[(main_state,i)] = backward_value # skip the termination step to avoid recalculations -- you should # get sequence probabilities using the forward algorithm |
| |||
# now loop over the letters in the state path for main_state in state_letters: # calculate the forward value using the appropriate # calculate the backward value using the appropriate # method to prevent underflow errors [[#variable77a84160]]= self. [[#variable77a840a0]](main_state,i, [[#variable78b5bfa0]]) if [[#variable77a84160]]is not None: [[#variable78b5bfa0]][(main_state,i)] = [[#variable77a84160]] # -- termination step - calculate the probability of the sequence # skip the termination step to avoid recalculations -- you should # get sequence probabilities using the forward algorithm |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#77a84160]] | forward_value |
1 | 2 | [[#77a84160]] | backward_value |
2 | 1 | [[#77a840a0]] | _forward_recursion |
2 | 2 | [[#77a840a0]] | _backward_recursion |
3 | 1 | [[#78b5bfa0]] | forward_var |
3 | 2 | [[#78b5bfa0]] | backward_var |