I am trying to set the von Mises distribution from scipy ( http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.vonmises.html )
So i tried
from scipy.stats import vonmises
kappa = 3
r = vonmises.rvs(kappa, size=1000)
plt.hist(r, normed=True,alpha=0.2)
He returns

However, when I enter data on it
vonmises.fit(r)
vonmises.fit(r, loc=0, scale=1)
But none of the returned values is a parameter of Von Mises, kappa.
What is the return value? Ifeel is loc or average. But I have no idea what the first return value is.
And how do I fit the von mises distribution?
source
share