Commit 41f464a8 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

include variance check

parent ee67995f
......@@ -12,15 +12,15 @@ INSTANTIATE_TEST_SUITE_P(TestMonteCarlo, TestMonteCarloParallelInterval, Values(
TEST_P(TestMonteCarloSeriellInterval, TestMethodOnlyFine) {
EXPECT_NEAR(mc.aggregate.mean.Q, 0.0, sqrt(1.0 / dM));
EXPECT_NEAR(mc.aggregate.mean.Y, 0.0, sqrt(1.0 / dM));
// EXPECT_NEAR(mc.aggregate.SVarQ, 1.0, sqrt(10.0 / dM));
// EXPECT_NEAR(mc.aggregate.SVarY, 1.0, sqrt(10.0 / dM));
EXPECT_NEAR(mc.aggregate.sVar.Q, 1.0, sqrt(10.0 / dM));
EXPECT_NEAR(mc.aggregate.sVar.Y, 1.0, sqrt(10.0 / dM));
}
TEST_P(TestMonteCarloParallelInterval, TestMethodOnlyFine) {
EXPECT_NEAR(mc.aggregate.mean.Q, 0.0, sqrt(1.0 / dM));
EXPECT_NEAR(mc.aggregate.mean.Y, 0.0, sqrt(1.0 / dM));
// EXPECT_NEAR(mc.aggregate.SVarQ, 1.0, sqrt(10.0 / dM));
// EXPECT_NEAR(mc.aggregate.SVarY, 1.0, sqrt(10.0 / dM));
EXPECT_NEAR(mc.aggregate.sVar.Q, 1.0, sqrt(10.0 / dM));
EXPECT_NEAR(mc.aggregate.sVar.Y, 1.0, sqrt(10.0 / dM));
}
int main(int argc, char **argv) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment