cleaner way of assigning discrete values

release/4.3a0
Varun Agrawal 2022-12-22 09:53:22 +05:30
parent d94b3199a0
commit 23ec7eddb0
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ TEST(HybridBayesNet, Error) {
// Verify error computation and check for specific error value // Verify error computation and check for specific error value
DiscreteValues discrete_values; DiscreteValues discrete_values;
insert(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++) {