Skip to main content
Module

x/simplestatistics/src/extent.js>default

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

This computes the minimum & maximum number in an array.

This runs in O(n), linear time, with respect to the length of the array.

Examples

extent([1, 2, 3, 4]); // => [1, 4]

Parameters

x

sample of one or more data points