Skip to main content
Module

x/simplestatistic/src/extent_sorted.js

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

Functions

The extent is the lowest & highest number in the array. With a sorted array, the first element in the array is always the lowest while the last element is always the largest, so this calculation can be done in one step, or constant time.