Use brace initializers for DiscreteValues in hybrid
parent
fee651a357
commit
b86c8bb594
|
|
@ -237,8 +237,7 @@ TEST(HybridBayesNet, Error) {
|
||||||
EXPECT(assert_equal(expected_pruned_error, pruned_error_tree, 1e-9));
|
EXPECT(assert_equal(expected_pruned_error, pruned_error_tree, 1e-9));
|
||||||
|
|
||||||
// Verify error computation and check for specific error value
|
// Verify error computation and check for specific error value
|
||||||
DiscreteValues discrete_values;
|
DiscreteValues discrete_values {{M(0), 1}, {M(1), 1}};
|
||||||
boost::assign::insert(discrete_values)(M(0), 1)(M(1), 1);
|
|
||||||
|
|
||||||
double total_error = 0;
|
double total_error = 0;
|
||||||
for (size_t idx = 0; idx < hybridBayesNet->size(); idx++) {
|
for (size_t idx = 0; idx < hybridBayesNet->size(); idx++) {
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@
|
||||||
#include <gtsam/linear/JacobianFactor.h>
|
#include <gtsam/linear/JacobianFactor.h>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <boost/assign/std/map.hpp>
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
@ -49,8 +48,6 @@
|
||||||
|
|
||||||
#include "Switching.h"
|
#include "Switching.h"
|
||||||
|
|
||||||
using namespace boost::assign;
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace gtsam;
|
using namespace gtsam;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue