double logProb = scale * dt.getTransitionLogP(false);
LogSemiring p = new LogSemiring(logProb);
double val = logProb;
ScalarPM r = new ScalarPM( SignedValue.createSignedValueFromRealNumber(val) );
r.multiSemiring(p);
res = new ExpectationSemiring<LogSemiring,ScalarPM>(p, r);
return res;
}