some fixes [multithreading,..]

needed interface changes [new options]
logger for android
wifi-ap-optimization
new test-cases
This commit is contained in:
2016-09-28 12:19:14 +02:00
parent 91e3367372
commit 4f511d907e
62 changed files with 1418 additions and 175 deletions

View File

@@ -138,6 +138,35 @@ TEST(Distribution, Region1) {
}
TEST(Distribution, Triangle) {
std::ofstream out("/tmp/1.dat");
for (float x = -9; x <= +9; x += 0.025) {
//const float y = Distribution::Region<float>::getProbability(0, 3, 1.2, x);
const float y = Distribution::Triangle<float>::getProbability(3, 6, x);
out << x << " " << y << "\n";
}
out.close();
Distribution::Triangle<float> dist1(0, 3);
ASSERT_NEAR(1.0, distCheckArea(dist1, -20, +20), 0.01);
Distribution::Triangle<float> dist2(0, 1);
ASSERT_NEAR(1.0, distCheckArea(dist2, -20, +20), 0.01);
Distribution::Triangle<float> dist3(1, 3);
ASSERT_NEAR(1.0, distCheckArea(dist3, -20, +20), 0.01);
Distribution::Triangle<float> dist4(1, 2);
ASSERT_NEAR(1.0, distCheckArea(dist4, -20, +20), 0.01);
Distribution::Triangle<float> dist5(-1, 4);
ASSERT_NEAR(1.0, distCheckArea(dist5, -20, +20), 0.01);
}
#endif