MCPcopy
hub / github.com/numpy/numpy / std

Method std

numpy/ma/core.py:5546–5568  ·  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, mean=np._NoValue)

Source from the content-addressed store, hash-verified

5544 var.__doc__ = np.var.__doc__
5545
5546 def std(self, axis=None, dtype=None, out=None, ddof=0,
5547 keepdims=np._NoValue, mean=np._NoValue):
5548 """
5549 Returns the standard deviation of the array elements along given axis.
5550
5551 Masked entries are ignored.
5552
5553 Refer to `numpy.std` for full documentation.
5554
5555 See Also
5556 --------
5557 numpy.ndarray.std : corresponding function for ndarrays
5558 numpy.std : Equivalent function
5559 """
5560 kwargs = {} if keepdims is np._NoValue else {'keepdims': keepdims}
5561
5562 dvar = self.var(axis, dtype, out, ddof, **kwargs)
5563 if dvar is not masked:
5564 if out is not None:
5565 np.power(out, 0.5, out=out, casting='unsafe')
5566 return out
5567 dvar = sqrt(dvar)
5568 return dvar
5569
5570 def round(self, decimals=0, out=None):
5571 """

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

Calls 2

varMethod · 0.95
sqrtFunction · 0.85

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