Commit ef2ffd4 1 parent f9031f5 commit ef2ffd4 Copy full SHA for ef2ffd4
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,11 @@ HybridGaussianFactor::Factors augment(
42
42
const HybridGaussianFactor::FactorValuePairs &factors) {
43
43
// Find the minimum value so we can "proselytize" to positive values.
44
44
// Done because we can't have sqrt of negative numbers.
45
- auto unzipped_pair = unzip (factors);
46
- const HybridGaussianFactor::Factors gaussianFactors = unzipped_pair.first ;
47
- const AlgebraicDecisionTree<Key> valueTree = unzipped_pair.second ;
45
+ HybridGaussianFactor::Factors gaussianFactors;
46
+ AlgebraicDecisionTree<Key> valueTree;
47
+ std::tie (gaussianFactors, valueTree) = unzip (factors);
48
+
49
+ // Normalize
48
50
double min_value = valueTree.min ();
49
51
AlgebraicDecisionTree<Key> values =
50
52
valueTree.apply ([&min_value](double n) { return n - min_value; });
You can’t perform that action at this time.
0 commit comments