/// <inheritdoc /> public override double RightProbability(double x) { if (x < xSupport.LeftEndpoint) { return(1.0); } else if (x > xSupport.RightEndpoint) { return(0.0); } else { ComputeEffectiveBin(x, out int k0, out double k1); return((1.0 - k1) * d.ProbabilityMass(k0) + d.RightExclusiveProbability(k0)); } }
/// <inheritdoc /> public override double RightProbability(double x) { if (x < xSupport.LeftEndpoint) { return(1.0); } else if (x > xSupport.RightEndpoint) { return(0.0); } else { int ki; double kf; ComputeEffectiveBin(x, out ki, out kf); return((1.0 - kf) * d.ProbabilityMass(ki) + d.RightExclusiveProbability(ki)); } }