{ } Raw JSON

bundles / scipy 1.18.0 / scipy / stats / _distribution_infrastructure / UnivariateDistribution / reset_cache

function

scipy.stats._distribution_infrastructure:UnivariateDistribution.reset_cache

source: /scipy/stats/_distribution_infrastructure.py:1614

Signature

def reset_cache(self)

Summary

Clear all cached values.

Extended Summary

To improve the speed of some calculations, the distribution's support and moments are cached.

This function is called automatically whenever the distribution parameters are updated.

Aliases

  • scipy.stats._distribution_infrastructure.UnivariateDistribution.reset_cache