Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 340 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 340 Bytes

bigint-quantile

Easily calculate quantiles for large datasets.

Installation

$ npm install bigint-quantile

Usage

import { calculateQuantile } from "bigint-quantile";

const data: bigint[] = [1n, 2n, 3n, 4n, 5n, 6n, 7n, 8n, 9n, 10n];
const quantile = 0.5;

const result = calculateQuantile(data, quantile);