We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8533097 commit 33ce02eCopy full SHA for 33ce02e
2 files changed
src/geode/stochastic/sampling/random_engine.cpp
@@ -334,7 +334,7 @@ namespace geode
334
double sample_truncated_powerlaw( const TruncatedPowerLaw& law )
335
{
336
OPENGEODE_ASSERT(
337
- alpha > 0, "Power-law exponent alpha must be > 0" );
+ law.alpha > 0, "Power-law exponent alpha must be > 0" );
338
339
// Set bounds
340
const double xmin = law.min_value.value_or(
tests/stochastic/sampling/mcmc/test-mh-fractures.cpp
@@ -97,7 +97,8 @@ namespace
97
98
// length
99
setA.length.distribution_type =
100
- geode::UniformClosed< double >::distribution_type_static();
+ geode::TruncatedPowerLaw::distribution_type_static();
101
+ setA.length.alpha = 2.;
102
setA.length.min_value = 1;
103
setA.length.max_value = 10.;
104
0 commit comments