MCPcopy Create free account
hub / github.com/numpy/numpy / std

Method std

numpy/ma/core.py:5462–5484  ·  view source on GitHub ↗

Returns the standard deviation of the array elements along given axis. Masked entries are ignored. Refer to `numpy.std` for full documentation. See Also -------- numpy.ndarray.std : corresponding function for ndarrays numpy.std : Equivalent

(self, axis=None, dtype=None, out=None, ddof=0,
            keepdims=np._NoValue)

Source from the content-addressed store, hash-verified

5460 var.__doc__ = np.var.__doc__
5461
5462 def std(self, axis=None, dtype=None, out=None, ddof=0,
5463 keepdims=np._NoValue):
5464 """
5465 Returns the standard deviation of the array elements along given axis.
5466
5467 Masked entries are ignored.
5468
5469 Refer to `numpy.std` for full documentation.
5470
5471 See Also
5472 --------
5473 numpy.ndarray.std : corresponding function for ndarrays
5474 numpy.std : Equivalent function
5475 """
5476 kwargs = {} if keepdims is np._NoValue else {'keepdims': keepdims}
5477
5478 dvar = self.var(axis, dtype, out, ddof, **kwargs)
5479 if dvar is not masked:
5480 if out is not None:
5481 np.power(out, 0.5, out=out, casting='unsafe')
5482 return out
5483 dvar = sqrt(dvar)
5484 return dvar
5485
5486 def round(self, decimals=0, out=None):
5487 """

Callers 15

test_where_dispatchMethod · 0.45
test_attributesMethod · 0.45
test_ticket_1434Method · 0.45
_stdFunction · 0.45
test_python_typeMethod · 0.45
test_std_whereMethod · 0.45
test_subclassMethod · 0.45
test_stdMethod · 0.45
test_basicMethod · 0.45
test_scalarsMethod · 0.45
test_ddof1Method · 0.45
test_ddof2Method · 0.45

Calls 2

varMethod · 0.95
sqrtFunction · 0.50

Tested by 15

test_where_dispatchMethod · 0.36
test_attributesMethod · 0.36
test_ticket_1434Method · 0.36
_stdFunction · 0.36
test_python_typeMethod · 0.36
test_std_whereMethod · 0.36
test_subclassMethod · 0.36
test_stdMethod · 0.36
test_basicMethod · 0.36
test_scalarsMethod · 0.36
test_ddof1Method · 0.36
test_ddof2Method · 0.36