Skip to main content
Module

x/simplestatistics/src/subtract_from_mean.js

simple statistics for node & browser javascript
Latest
import * as simplestatistics from "https://deno.land/x/simplestatistics@v7.8.3/src/subtract_from_mean.js";

Functions

When removing a value from 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 value to remove.