Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/denouse/mod.ts>useNormalArray

Util functions for Deno
Latest
function useNormalArray
import { useNormalArray } from "https://deno.land/x/denouse@v0.0.12/mod.ts";

Generate a normally distributed array.

Parameters

num: number

Mean of the distribution μ.

mean: number

Variance of the distribution σ^2.

variance: number

Returns

Float32Array

A normally distributed array.