def convert_kappa_std(kappa,deg=True):
'''This converts kappa from the von Mises distribution into a
standard deviation that can be used to generate a similar normal
distribution
SH: 14June2013
'''
R_bar = spec.iv(1,kappa)/spec.iv(0,kappa)
if deg==True:
return np.sqrt(-2*np.log(R_bar))*180./np.pi
else:
return np.sqrt(-2*np.log(R_bar))
评论列表
文章目录