Closed andrewdavidsmith closed 5 years ago
Looks like they were defined as they are from the very beginning, like this one: https://github.com/smithlabcode/methpipe/blame/master/src/common/TwoStateHMM.cpp#L736
Can one of you fix this? Also, there is an instance variable emission_correction_count
and rename the class from TwoStateHMMB
to TwoStateHMM
, which also means changing a couple lines in hmr.cpp
?
@xjlizji Did you take care of this?
I fixed the const variable types and removed emission_correction_count
. Do you mean we should change all TwoStateHMMB
to TwoStateHMM
? Just want to make sure.
Yes. I think there is no reason to avoid using the TwoStateHMM
and I can't even remember why there was a B
version made at this point.
Maybe for "Baum-Welch". Now all TwoStateHMMB
are changed to TwoStateHMM
@xjlizji @bdecato @mengzhou Does anyone know why certain functions (e.g.
TransitionPosteriors
) in the TwoStateHMM and related classes have parameters that are declared asdouble
but without theconst
or without a reference? These seem like they don't need to change inside the functions, at least in one example I looked at. So I'm not sure why they are declared the way they are.