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