jax-js
    Preparing search index...
    • Compute the variance of an array.

      The variance is computed for the flattened array by default, otherwise over the specified axis.

      If correction is provided, the divisor in calculation is N - correction, where N represents the number of elements (e.g., for Bessel's correction).

      Parameters

      • x: ArrayLike
      • axis: null | number | number[] = null
      • Optionalopts: { correction?: number; mean?: ArrayLike } & { keepdims?: boolean }

      Returns Array