This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _distn_infrastructure / rv_continuous / fit_loc_scale

function

scipy.stats._distn_infrastructure:rv_continuous.fit_loc_scale

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_distn_infrastructure.py:2864

Signature

def fit_loc_scale(self, data, *args)

Summary

Estimate loc and scale parameters from data using 1st and 2nd moments.

Parameters

data : array_like

Data to fit.

arg1, arg2, arg3,... : array_like

The shape parameter(s) for the distribution (see docstring of the instance object for more information).

Returns

Lhat : float

Estimated location parameter for the data.

Shat : float

Estimated scale parameter for the data.

Aliases

  • scipy.stats.rv_continuous.fit_loc_scale