{ } Raw JSON

bundles / scipy 1.18.0 / scipy / stats / _distn_infrastructure / rv_continuous / _delta_cdf

function

scipy.stats._distn_infrastructure:rv_continuous._delta_cdf

source: /scipy/stats/_distn_infrastructure.py:3065

Signature

def _delta_cdf(self, x1, x2, *args, loc = 0, scale = 1)

Summary

Compute CDF(x2) - CDF(x1).

Extended Summary

Where x1 is greater than the median, compute SF(x1) - SF(x2), otherwise compute CDF(x2) - CDF(x1).

This function is only useful if dist.sf(x, ...) has an implementation that is numerically more accurate than 1 - dist.cdf(x, ...).

Aliases

  • scipy.stats.rv_continuous._delta_cdf