Skip to content

function stddev(const E1 &) reducing

template <input_expression E1, typename T = expression_value_type<E1>>
KFR_FUNCTION T stddev(const E1& x)

Computes the standard deviation of the given expression.

This function calculates the standard deviation of the input expression x. The input must be a sized expression.

Template parameters
T The return type of the standard deviation.
E1 The type of the input expression.
Parameters
x The input expression for which the standard deviation is computed.
Returns
The standard deviation of the input expression.

Defined at base/reduce.hpp:453