//!Set the Backward score for the given cell //!\param seqPos Sequence position //!\param currState State index //!\param value Forward score void simpleTrellis::setBackward(size_t seqPos, size_t currState,double& value) { if (getBackward(seqPos,currState)==-INFINITY) { trell[seqPos][currState].back=value; } else { trell[seqPos][currState].back=addLog(trell[seqPos][currState].back, value); } return; }
Matrix3x3f Quaternion::toMatrix () const { Matrix3x3f rotation; rotation.setRight (getRight ()); rotation.setUp (getUp ()); rotation.setBackward (getBackward ()); return (rotation); }
//!Set the Backward score for the given cell //!\param val Backward score void simpleTrellis::setBackward(double& value) { //sequencePosition-1, currentState if (getBackward()==-INFINITY) { trell[sequencePosition-1][currentState].back=value; } else { trell[sequencePosition-1][currentState].back=addLog(trell[sequencePosition-1][currentState].back, value); } if (value>-INFINITY) { _nextStates->insert(currentStatePtr); } return; }