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

2.0.2 • Public • Published

Installation

npm install --save @types/distributions

Summary

This package contains type definitions for distributions (https://github.com/AndreasMadsen/distributions).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/distributions.

index.d.ts

export function Normal(mean?: number, sd?: number): Distribution;
export function Studentt(df: number): Distribution;
export function Uniform(a?: number, b?: number): Distribution;
export function Binomial(properbility: number, size: number): Distribution;

export interface Distribution {
    pdf: (x: number) => number;
    cdf: (x: number) => number;
    inv: (p: number) => number;
    mean: () => number;
    median: () => number;
    variance: () => number;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Marco Lanaro.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/distributions

Weekly Downloads

131

Version

2.0.2

License

MIT

Unpacked Size

3.52 kB

Total Files

5

Last publish

Collaborators

  • types