more simplification
							parent
							
								
									b79c69b408
								
							
						
					
					
						commit
						e9bf802d78
					
				|  | @ -189,8 +189,7 @@ AlgebraicDecisionTree<Key> HybridGaussianFactor::errorTree( | |||
|   auto errorFunc = [&continuousValues](const GaussianFactorValuePair& pair) { | ||||
|     return PotentiallyPrunedComponentError(pair, continuousValues); | ||||
|   }; | ||||
|   DecisionTree<Key, double> error_tree(factors_, errorFunc); | ||||
|   return error_tree; | ||||
|   return {factors_, errorFunc}; | ||||
| } | ||||
| 
 | ||||
| /* *******************************************************************************/ | ||||
|  |  | |||
|  | @ -100,8 +100,7 @@ AlgebraicDecisionTree<Key> HybridNonlinearFactor::errorTree( | |||
|         auto [factor, val] = f; | ||||
|         return factor->error(continuousValues) + val; | ||||
|       }; | ||||
|   DecisionTree<Key, double> result(factors_, errorFunc); | ||||
|   return result; | ||||
|   return {factors_, errorFunc}; | ||||
| } | ||||
| 
 | ||||
| /* *******************************************************************************/ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue