Implementing AP_Viterbi decoding and RandomWalkGMM sampling with
different method of stability (full log transform)