scipp.stddevs#
- scipp.stddevs(x)#
Return the input’s standard deviations as values.
- Parameters:
x (
scipp.typing.VariableLike) – Input data with variances.- Returns:
scipp.typing.VariableLike– The same as the input but with values set to standard deviations computed from the input’s variances and without variances itself.
See also
Examples
Extract standard deviations (square root of variances) as values:
>>> import scipp as sc >>> x = sc.array(dims=['x'], values=[1.0, 2.0, 3.0], variances=[0.1, 0.2, 0.3], unit='m') >>> sc.stddevs(x) <scipp.Variable> (x: 3) float64 [m] [0.316228, 0.447214, 0.547723]