numpy.ma.var()
numpy.ma.var
-
numpy.ma.var(self, axis=None, dtype=None, out=None, ddof=0) =
-
Compute the variance along the specified axis.
Returns the variance of the array elements, a measure of the spread of a distribution. The variance is computed for the flattened array by default, otherwise over the specified axis.
Parameters: a : array_like
Array containing numbers whose variance is desired. If
a
is not an array, a conversion is attempted.axis : None or int or tuple of ints, optional
Axis or axes along which the variance is computed. The default is