Skip to main content
Module

x/simplestatistics/index.js>jenks

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

The jenks natural breaks optimization is an algorithm commonly used in cartography and visualization to decide upon groupings of data values that minimize variance within themselves and maximize variation between themselves.

For instance, cartographers often use jenks in order to choose which values are assigned to which colors in a choropleth map.

Parameters

data

input data, as an array of number values

nClasses

number of desired classes