def circmoment(data, p=1.0, centered=False, axis=None, weights=None):
 if centered:
  phi = circmean(data, axis, weights)
 else:
  phi = 0.0
 return (_angle(data, p, phi, axis, weights), _length(data, p, phi, axis, weights))

def circmoment ( data , p = 1.0 , centered = False , axis = None , weights = None ) : if centered : phi = circmean ( data , axis , weights ) else : phi = 0.0 return ( _angle ( data , p , phi , axis , weights ) , _length ( data , p , phi , axis , weights ) )
computes the p-th trigonometric circular moment for an array of circular data .