Skip to content

Commit f508edc

Browse files
Merge branch 'next' into multi_type_object_sampling
2 parents 1fba825 + 42a5edb commit f508edc

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
@@ -101,20 +101,17 @@ namespace
101101
" and mean paires = ", mean_paires, " (expected ", nb_points, " ; ",
102102
nb_paires, ") " );
103103

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

107-
// ------------------------------------------------------------
108-
// Variance test: Poisson => Var(N) ≈ E[N]
109-
// ------------------------------------------------------------
110107
if( nb_paires == 0 )
111108
{
112109
OPENGEODE_EXCEPTION(
113110
mean_paires == 0, "[MH test] unexpected nb paires." );
114111
}
115112
else
116113
{
117-
OPENGEODE_EXCEPTION( std::abs( mean_paires - nb_paires ) < 3,
114+
OPENGEODE_EXCEPTION( std::abs( mean_paires - nb_paires ) < 5,
118115
"[MH test] unexpected nb paires." );
119116
}
120117
}

0 commit comments

Comments
 (0)