{ } Raw JSON

bundles / scipy latest / scipy / stats / _distn_infrastructure / rv_generic / _construct_argparser

function

scipy.stats._distn_infrastructure:rv_generic._construct_argparser

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

Signature

def   _construct_argparser ( self meths_to_inspect locscale_in locscale_out )

Summary

Construct the parser string for the shape arguments.

Extended Summary

This method should be called in __init__ of a class for each distribution. It creates the _parse_arg_template attribute that is then used by _attach_argparser_methods to dynamically create and attach the _parse_args, _parse_args_stats, _parse_args_rvs methods to the instance.

If self.shapes is a non-empty string, interprets it as a comma-separated list of shape parameters.

Otherwise inspects the call signatures of meths_to_inspect and constructs the argument-parsing functions from these. In this case also sets shapes and numargs.

Aliases

  • scipy.stats._distn_infrastructure.rv_generic._construct_argparser