Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/simplestatistics/index.js>mad

simple statistics for node & browser javascript
Go to Latest
function mad
import { mad } from "https://deno.land/x/simplestatistics@v7.7.6/index.js";

The Median Absolute Deviation is a robust measure of statistical dispersion. It is more resilient to outliers than the standard deviation.

Examples

medianAbsoluteDeviation([1, 1, 2, 2, 4, 6, 9]); // => 1

Parameters

x

input array