def circvar(samples, high=(2 * pi), low=0, axis=None):
 (samples, ang) = _circfuncs_common(samples, high, low)
 S = sin(ang).mean(axis=axis)
 C = cos(ang).mean(axis=axis)
 R = hypot(S, C)
 return ((((((high - low) / 2.0) / pi) ** 2) * 2) * log((1 / R)))

def circvar ( samples , high = ( 2 * pi ) , low = 0 , axis = None ) : ( samples , ang ) = _circfuncs_common ( samples , high , low ) S = sin ( ang ) . mean ( axis = axis ) C = cos ( ang ) . mean ( axis = axis ) R = hypot ( S , C ) return ( ( ( ( ( ( high - low ) / 2.0 ) / pi ) ** 2 ) * 2 ) * log ( ( 1 / R ) ) )
compute the circular variance for samples assumed to be in a range parameters samples : array_like input array .