Undo scaling
parent
09bf00b545
commit
7022f59237
|
@ -228,11 +228,11 @@ namespace gtsam {
|
||||||
// We divide both `product` and `sum` by `max(sum)`
|
// We divide both `product` and `sum` by `max(sum)`
|
||||||
// since it is faster to compute and when the conditional
|
// since it is faster to compute and when the conditional
|
||||||
// is formed by `product/sum`, the scaling term cancels out.
|
// is formed by `product/sum`, the scaling term cancels out.
|
||||||
gttic(scale);
|
// gttic(scale);
|
||||||
DiscreteFactor::shared_ptr denominator = sum->max(sum->size());
|
// DiscreteFactor::shared_ptr denominator = sum->max(sum->size());
|
||||||
product = product->operator/(denominator);
|
// product = product->operator/(denominator);
|
||||||
sum = sum->operator/(denominator);
|
// sum = sum->operator/(denominator);
|
||||||
gttoc(scale);
|
// gttoc(scale);
|
||||||
|
|
||||||
// Ordering keys for the conditional so that frontalKeys are really in front
|
// Ordering keys for the conditional so that frontalKeys are really in front
|
||||||
Ordering orderedKeys;
|
Ordering orderedKeys;
|
||||||
|
|
Loading…
Reference in New Issue