Udostępnij za pośrednictwem


Tensor.Average<T>(ReadOnlyTensorSpan<T>) Metoda

Definicja

Zwraca średnią elementów w x tensor.

public:
generic <typename T>
 where T : System::Numerics::IFloatingPoint<T> static T Average(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x);
public static T Average<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IFloatingPoint<T>;
static member Average : ReadOnlyTensorSpan -> 'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)
Public Function Average(Of T As IFloatingPoint(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T)) As T

Parametry typu

T

Parametry

x
ReadOnlyTensorSpan<T>

TensorSpan<T> do uwzględnienia średniej.

Zwraca

T

T reprezentującą średnią.

Dotyczy