core: Assert that probability is valid in EmpiricalRandomVariable::ValueCDF::ValueCDF

This commit is contained in:
Alexander Krotov
2017-04-07 20:27:21 +03:00
parent e570129307
commit 2327498f91

View File

@@ -1544,6 +1544,7 @@ EmpiricalRandomVariable::ValueCDF::ValueCDF (double v, double c)
cdf (c)
{
NS_LOG_FUNCTION (this << v << c);
NS_ASSERT (c >= 0.0 && c <= 1.0);
}
EmpiricalRandomVariable::ValueCDF::ValueCDF (const ValueCDF& c)
: value (c.value),