core: Check that CDF covers the whole distribution in EmpiricalRandomVariable::Validate

This commit is contained in:
Alexander Krotov
2017-04-07 20:23:34 +03:00
parent bf762f52d6
commit e570129307

View File

@@ -1655,6 +1655,10 @@ void EmpiricalRandomVariable::Validate ()
}
prior = current;
}
if (prior.cdf != 1.0)
{
NS_FATAL_ERROR ("CDF does not cover the whole distribution");
}
m_validated = true;
}