Skip to content

Commit

Permalink
relax gaussian test tolerance (#344)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
  • Loading branch information
iche033 authored Jun 15, 2021
1 parent fa71fc3 commit 5164539
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/GaussianNoisePass_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ void GaussianNoisePassTest::GaussianNoise(const std::string &_renderEngine)
double biasStdDev = 0.007;
noisePass->SetBiasStdDev(biasStdDev);
// expect bias to be within 3-sigma
EXPECT_LE(std::fabs(noisePass->Bias()), biasMean + biasStdDev*3);
EXPECT_GE(std::fabs(noisePass->Bias()), biasMean - biasStdDev*3);
// Note, tol relaxed to 4-sigma to fix flaky test
EXPECT_LE(std::fabs(noisePass->Bias()), biasMean + biasStdDev*4);
EXPECT_GE(std::fabs(noisePass->Bias()), biasMean - biasStdDev*4);
}

/////////////////////////////////////////////////
Expand Down

0 comments on commit 5164539

Please sign in to comment.