136 Simulator::Schedule(Seconds(0.05),
148 Simulator::Schedule(Seconds(0.09),
151 Simulator::Schedule(Seconds(0.19),
154 Simulator::Schedule(Seconds(0.25),
157 Simulator::Schedule(Seconds(0.31),
160 Simulator::Schedule(Seconds(0.41),
165 Simulator::Schedule(Seconds(0.5),
177 Simulator::Schedule(Seconds(0.59),
180 Simulator::Schedule(Seconds(0.69),
183 Simulator::Schedule(Seconds(0.75),
186 Simulator::Schedule(Seconds(0.91),
189 Simulator::Schedule(Seconds(1.39),
192 Simulator::Schedule(Seconds(1.41),
201 NS_TEST_ASSERT_MSG_EQ(std::isnan(
m_cnoEstimations[0]),
true,
"first estimation incorrect");
202 NS_TEST_ASSERT_MSG_EQ(
m_cnoEstimations[1], -5.0,
"second estimation incorrect");
203 NS_TEST_ASSERT_MSG_EQ(
m_cnoEstimations[2], 5.0,
"third estimation incorrect");
204 NS_TEST_ASSERT_MSG_EQ(
m_cnoEstimations[3], -15.0,
"fourth estimation incorrect");
205 NS_TEST_ASSERT_MSG_EQ(std::isnan(
m_cnoEstimations[4]),
true,
"fifth estimation incorrect");
208 NS_TEST_ASSERT_MSG_EQ(std::isnan(
m_cnoEstimations[5]),
true,
"sixth estimation incorrect");
209 NS_TEST_ASSERT_MSG_EQ(
m_cnoEstimations[6], -6.0,
"seventh estimation incorrect");
210 NS_TEST_ASSERT_MSG_EQ(
m_cnoEstimations[7], 1.0,
"eight estimation incorrect");
211 NS_TEST_ASSERT_MSG_EQ(
m_cnoEstimations[8], 1.0,
"ninth estimation incorrect");
212 NS_TEST_ASSERT_MSG_EQ(
m_cnoEstimations[9], -5.0,
"tenth estimation incorrect");
213 NS_TEST_ASSERT_MSG_EQ(std::isnan(
m_cnoEstimations[10]),
true,
"eleventh estimation incorrect");
215 Simulator::Destroy();
261 Simulator::Schedule(Seconds(0.05),
274 Simulator::Schedule(Seconds(0.09),
277 Simulator::Schedule(Seconds(0.19),
280 Simulator::Schedule(Seconds(0.35),
283 Simulator::Schedule(Seconds(0.41),
286 Simulator::Schedule(Seconds(0.49),
289 Simulator::Schedule(Seconds(0.69),
298 NS_TEST_ASSERT_MSG_EQ(std::isnan(
m_cnoEstimations[0]),
true,
"first estimation incorrect");
299 NS_TEST_ASSERT_MSG_EQ(
m_cnoEstimations[1], -4.2,
"second estimation incorrect");
300 NS_TEST_ASSERT_MSG_EQ(
m_cnoEstimations[2], -4.2,
"third estimation incorrect");
301 NS_TEST_ASSERT_MSG_EQ(
m_cnoEstimations[3], 8.1,
"fourth estimation incorrect");
302 NS_TEST_ASSERT_MSG_EQ(
m_cnoEstimations[4], -15.7,
"fifth estimation incorrect");
303 NS_TEST_ASSERT_MSG_EQ(std::isnan(
m_cnoEstimations[5]),
true,
"sixth estimation incorrect");
305 Simulator::Destroy();
353 Simulator::Schedule(Seconds(0.05),
366 Simulator::Schedule(Seconds(0.09),
369 Simulator::Schedule(Seconds(0.19),
372 Simulator::Schedule(Seconds(0.35),
375 Simulator::Schedule(Seconds(0.41),
378 Simulator::Schedule(Seconds(0.49),
381 Simulator::Schedule(Seconds(0.69),
390 NS_TEST_ASSERT_MSG_EQ(std::isnan(
m_cnoEstimations[0]),
true,
"first estimation incorrect");
391 NS_TEST_ASSERT_MSG_EQ_TOL(
m_cnoEstimations[1], -4.2, 0.0001,
"second estimation incorrect");
393 (-4.2 + 8.1 - 15.7) / 3,
395 "third estimation incorrect");
399 "fourth estimation incorrect");
400 NS_TEST_ASSERT_MSG_EQ_TOL(
m_cnoEstimations[4], 2.4, 0.0001,
"fifth estimation incorrect");
401 NS_TEST_ASSERT_MSG_EQ(std::isnan(
m_cnoEstimations[5]),
true,
"sixth estimation incorrect");
403 Simulator::Destroy();