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

1.1.2 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/jsboxmuller

      Weekly Downloads

      0

      Version

      1.1.2

      License

      MIT

      Unpacked Size

      3.91 kB

      Total Files

      5

      Last publish

      Collaborators

      • types