core: EmpiricalRandomVariable: inconsistent Documentation for CDF validation
Hi,
from the Docs for EmpiricalRandomVariable:
The CDF need not start with a probability of zero, nor end with a probability of 1.0.
However, in EmpiricalRandomVariable::Validate(), the CDF final value does have to be 1.0:
if (prior.cdf != 1.0)
{
NS_FATAL_ERROR("CDF does not cover the whole distribution");
}
Am I misunderstanding something or is this an inconsistency in the documentation?
(BTW, browsing for similar related issues I found #143 (closed) which resulted in a merged PR that I somehow don't see in the current code).
Edited by Andreas Boltres