core: Assert that probability is valid in EmpiricalRandomVariable::ValueCDF::ValueCDF
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user