Function var_v2

Source
pub fn var_v2<T>(
    arr: &Array<T>,
    bias_kind: VarianceBias,
    dim: i64,
) -> Array<T::MeanOutType>
Expand description

Compute Variance along a specific dimension

§Parameters

  • arr is the input Array
  • bias_kind of type VarianceBias denotes the type of variane to be computed
  • dim is the dimension along which the variance is extracted

§Return Values

Array with variance of input Array arr along dimension dim.