Installation
npm install --save @types/jsboxmuller
Summary
This package contains type definitions for jsboxmuller (https://github.com/kcwiakala/jsboxmuller).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsboxmuller.
index.d.ts
export = jsBoxMuller;
/**
* Generates normally-distributed pseudo-random numbers using the polar form of the
* Box-Muller transform (https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform).
*
* Note that the documentation for the jsboxmuller package incorrectly referrs to the
* second argument as "variance", when it is really standard deviation (the square root
* of variance); it is labeled correctly here.
*
* @param mean - The mean of the normal distribution; defaults to 0 if not provided.
* @param stdDev - The standarad deviation of the distribtion; defaults to 1 if not provided.
*/
declare function jsBoxMuller(mean?: number, stdDev?: number): number;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Ethan Brown.