Show / Hide Table of Contents

    Method varAxis

    static member varAxis: int * Tensor<'T> * int64 option -> Tensor<'T>

    Calculates the variance of the elements along the specified axis.

    Declaration
    static member varAxis: axis:int * a:Tensor<'T> * ddof:int64 option -> Tensor<'T>
    Parameters
    Type Name Description
    int axis
    Tensor<'T> a

    The tensor containing the source values.

    int64 option ddof

    The delta degrees of freedom. (default: 0L)

    Returns
    Type Description
    Tensor<'T>

    A new tensor containing the result of this operation.

    Remarks

    The variance is calculated along the specified axis.

    The parameter ddof specifies the difference between the number of elements and the degrees of freedom for the computation of the variance. Use ddof=1 to obtain an unbiased estimate and ddof=0 for a maximum-likelihood estimate.

    Examples
     let a = HostTensor.ofList2D [[1.0; 2.0; 3.0; 4.0]
                                  [5.0; 6.0; 7.0; 8.0]]
     let b = Tensor.varAxis (1, a, ddof=1L) 
    See Also
    static member var: Tensor<'T> * int64 option -> 'T
    static member meanAxis: int -> Tensor<'T> -> Tensor<'T>
    static member stdAxis: int * Tensor<'T> * int64 option -> Tensor<'T>
    Back to top Generated by DocFX