{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _morestats / _parse_dist_kw

function

scipy.stats._morestats:_parse_dist_kw

source: /scipy/stats/_morestats.py :469

Signature

def   _parse_dist_kw ( dist enforce_subclass = True )

Summary

Parse dist keyword.

Parameters

dist : str or stats.distributions instance.

Several functions take dist as a keyword, hence this utility function.

enforce_subclass : bool, optional

If True (default), dist needs to be a _distn_infrastructure.rv_generic instance. It can sometimes be useful to set this keyword to False, if a function wants to accept objects that just look somewhat like such an instance (for example, they have a ppf method).

Aliases

  • scipy.stats._morestats._parse_dist_kw