NDArray::variance
public static function variance(NDArray|array|float|int $array): float|int;
Calculates the variance of the elements in the array. It measures the average of the squared differences between each element and the mean.
Notes
tip
GPU SUPPORTED
This operation is supported by GPU (VRAM) and contains a custom CUDA kernel.