Skip to content

Commit fbc173a

Browse files
same with strauss
1 parent d807839 commit fbc173a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/stochastic/sampling/mcmc/test-mh-strauss-statistics-and-convergence.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,17 @@ namespace
106106
" and mean paires = ", mean_paires, " (expected ", nb_points, " ; ",
107107
nb_paires, ") " );
108108

109-
OPENGEODE_EXCEPTION( std::abs( mean_points - nb_points ) < 1,
109+
OPENGEODE_EXCEPTION( std::abs( mean_points - nb_points ) < 3,
110110
"[MH test] unexpected nb points." );
111111

112-
// ------------------------------------------------------------
113-
// Variance test: Poisson => Var(N) ≈ E[N]
114-
// ------------------------------------------------------------
115112
if( nb_paires == 0 )
116113
{
117114
OPENGEODE_EXCEPTION(
118115
mean_paires == 0, "[MH test] unexpected nb paires." );
119116
}
120117
else
121118
{
122-
OPENGEODE_EXCEPTION( std::abs( mean_paires - nb_paires ) < 3,
119+
OPENGEODE_EXCEPTION( std::abs( mean_paires - nb_paires ) < 5,
123120
"[MH test] unexpected nb paires." );
124121
}
125122
}

0 commit comments

Comments
 (0)