lml-main
Version:
This is now a mono repository published into many standalone packages.
45 lines (29 loc) • 865 B
Markdown
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
Compute the median absolute deviation of a matrix or a list with values.
The median absolute deviation is defined as the median of the absolute
deviations from the median.
```js
math.mad(a, b, c, ...)
math.mad(A)
```
Parameter | Type | Description
--------- | ---- | -----------
`array` | Array &
Type | Description
---- | -----------
* | The median absolute deviation.
```js
math.mad(10, 20, 30); // returns 10
math.mad([1, 2, 3]); // returns 1
math.mad([[1, 2, 3], [4, 5, 6]]); // returns 1.5
```
[](median.md),
[](mean.md),
[](std.md),
[](abs.md)