{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _multivariate / vonmises_fisher_gen / fit

function

scipy.stats._multivariate:vonmises_fisher_gen.fit

source: /scipy/stats/_multivariate.py :7575

Signature

def   fit ( self x )

Summary

Fit the von Mises-Fisher distribution to data.

Parameters

x : array-like

Data the distribution is fitted to. Must be two dimensional. The second axis of x must be unit vectors of norm 1 and determine the dimensionality of the fitted von Mises-Fisher distribution.

Returns

mu : ndarray

Estimated mean direction.

kappa : float

Estimated concentration parameter.

Aliases

  • scipy.stats._multivariate.vonmises_fisher_gen.fit