def vonmisesmle(data, axis=None):
 mu = circmean(data, axis=None)
 kappa = _A1inv(np.mean(np.cos((data - mu)), axis))
 return (mu, kappa)

def vonmisesmle ( data , axis = None ) : mu = circmean ( data , axis = None ) kappa = _A1inv ( np . mean ( np . cos ( ( data - mu ) ) , axis ) ) return ( mu , kappa )
computes the maximum likelihood estimator for the parameters of the von mises distribution .