@types/compute-quantile
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

/**
 * 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: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by mrmlnc.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/compute-quantile

Weekly Downloads

168

Version

1.0.3

License

MIT

Unpacked Size

3.51 kB

Total Files

5

Last publish

Collaborators

  • types