Skip to main content
Module

x/simplestatistic/src/add_to_mean.js

simple statistics for node & browser javascript
import * as simplestatistic from "https://deno.land/x/simplestatistic@v7.7.1/src/add_to_mean.js";

Functions

When adding a new value to a list, one does not have to necessary recompute the mean of the list in linear time. They can instead use this function to compute the new mean by providing the current mean, the number of elements in the list that produced it and the new value to add.