1.0.3 • Published 7 months ago
@types/compute-quantile v1.0.3
Installation
npm install --save @types/compute-quantile
Summary
This package contains type definitions for compute-quantile (https://github.com/compute-io/quantile).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/compute-quantile.
index.d.ts
// Type definitions for compute-quantile 1.0
// Project: https://github.com/compute-io/quantile
// Definitions by: mrmlnc <https://github.com/mrmlnc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Computes a quantile for a numeric array.
*/
declare function quantile(array: ArrayLike<number>, quantile: number, options?: quantile.Options): number;
declare namespace quantile {
interface Options {
/**
* If the input `array` is already sorted in `__ascending__` order, you can set the `sorted` option to `true`.
*
* @default
* false
*/
sorted?: boolean | undefined;
}
}
export = quantile;
Additional Details
- Last updated: Thu, 08 Jul 2021 09:08:05 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by mrmlnc.