Skip to content

variance

Computes population variance.

ts
import { variance } from '@vielzeug/toolkit';

variance([2, 4, 4, 4, 5, 5, 7, 9]); // 4