Share via


TensorPrimitives.StdDev<T>(ReadOnlySpan<T>) Method

Definition

Computes the standard deviation of all elements in the specified non-empty tensor of numbers.

public:
generic <typename T>
 where T : System::Numerics::IRootFunctions<T> static T StdDev(ReadOnlySpan<T> x);
public static T StdDev<T>(ReadOnlySpan<T> x) where T : System.Numerics.IRootFunctions<T>;
static member StdDev : ReadOnlySpan<'T (requires 'T :> System.Numerics.IRootFunctions<'T>)> -> 'T (requires 'T :> System.Numerics.IRootFunctions<'T>)
Public Shared Function StdDev(Of T As IRootFunctions(Of T)) (x As ReadOnlySpan(Of T)) As T

Type Parameters

T

Parameters

x
ReadOnlySpan<T>

The tensor, represented as a span.

Returns

T

The standard deviation of all elements in x.

Exceptions

Length of x must be greater than zero.

Remarks

If any of the input values is equal to NaN, the result value is also NaN.

Applies to