Skip to main content
Module

x/statistics/mod.ts>min

Deno basic statistics module.
Latest
function min
import { min } from "https://deno.land/x/statistics@v0.1.1/mod.ts";

The min is the lowest number in the array. This runs on O(n), linear time in respect to the array

Examples

min([1, 5, -10, 100, 2]); // => -10

Parameters

x: number[]

sample of one or more data points

Returns

number

minimum value