MCPcopy Index your code
hub / github.com/pydata/xarray / _weighted_std

Method _weighted_std

xarray/computation/weighted.py:309–317  ·  view source on GitHub ↗

Reduce a DataArray by a weighted ``std`` along some dimension(s).

(
        self,
        da: T_DataArray,
        dim: Dims = None,
        skipna: bool | None = None,
    )

Source from the content-addressed store, hash-verified

307 return sum_of_squares / sum_of_weights
308
309 def _weighted_std(
310 self,
311 da: T_DataArray,
312 dim: Dims = None,
313 skipna: bool | None = None,
314 ) -> T_DataArray:
315 """Reduce a DataArray by a weighted ``std`` along some dimension(s)."""
316
317 return cast("T_DataArray", np.sqrt(self._weighted_var(da, dim, skipna)))
318
319 def _weighted_quantile(
320 self,

Callers

nothing calls this directly

Calls 1

_weighted_varMethod · 0.95

Tested by

no test coverage detected