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)
| 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 | """ |