| … | … | @@ -170,7 +170,7 @@ TruthValuePtr mk_stv(double mean, double variance, |
| 170 | 170 | |
| 171 | 171 | // The strength is in fact the mode, this should be corrected once |
| 172 | 172 | // TruthValue is reworked |
| 173 | return SimpleTruthValue::createTV(mode, confidence); | |
| 173 | return createSimpleTruthValue(mode, confidence); | |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | std::string oc_to_string(const BetaDistribution& bd, const std::string& indent) |
| … | … | @@ -54,11 +54,11 @@ void ActionSelectionUTest::test_distribution() |
| 54 | 54 | A4 = an(NODE, "A4"), |
| 55 | 55 | A5 = an(NODE, "A5"); |
| 56 | 56 | TruthValuePtr |
| 57 | TV1 = SimpleTruthValue::createSTV(0.000000, 0.003793), | |
| 58 | TV2 = SimpleTruthValue::createSTV(1.000000, 0.001585), | |
| 59 | TV3 = SimpleTruthValue::createSTV(0.000000, 0.007500), | |
| 60 | TV4 = SimpleTruthValue::createSTV(0.000000, 0.001611), | |
| 61 | TV5 = SimpleTruthValue::createSTV(0.001785, 0.001256); | |
| 57 | TV1 = createSimpleTruthValue(0.000000, 0.003793), | |
| 58 | TV2 = createSimpleTruthValue(1.000000, 0.001585), | |
| 59 | TV3 = createSimpleTruthValue(0.000000, 0.007500), | |
| 60 | TV4 = createSimpleTruthValue(0.000000, 0.001611), | |
| 61 | TV5 = createSimpleTruthValue(0.001785, 0.001256); | |
| 62 | 62 | |
| 63 | 63 | HandleTVMap a2tv{{A1, TV1}, {A2, TV2}, {A3, TV3}, {A4, TV4}, {A5, TV5}}; |
| 64 | 64 |
| … | … | @@ -53,12 +53,12 @@ void BetaDistributionUTest::test_cdf() |
| 53 | 53 | logger().debug("BEGIN TEST: %s", __FUNCTION__); |
| 54 | 54 | |
| 55 | 55 | vector<TruthValuePtr> |
| 56 | TVs{SimpleTruthValue::createSTV(0.0, 0.01), | |
| 57 | SimpleTruthValue::createSTV(0.5, 0.01), | |
| 58 | SimpleTruthValue::createSTV(1.0, 0.01), | |
| 59 | SimpleTruthValue::createSTV(0.0, 1), | |
| 60 | SimpleTruthValue::createSTV(0.5, 1), | |
| 61 | SimpleTruthValue::createSTV(1.0, 1),}; | |
| 56 | TVs{createSimpleTruthValue(0.0, 0.01), | |
| 57 | createSimpleTruthValue(0.5, 0.01), | |
| 58 | createSimpleTruthValue(1.0, 0.01), | |
| 59 | createSimpleTruthValue(0.0, 1), | |
| 60 | createSimpleTruthValue(0.5, 1), | |
| 61 | createSimpleTruthValue(1.0, 1),}; | |
| 62 | 62 | |
| 63 | 63 | vector<BetaDistribution> BDs; |
| 64 | 64 | for (const auto& TV : TVs) |