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

x/netsaur/packages/utilities/src/mod.ts>useNormalArray

Powerful machine learning, accelerated by WebGPU
Go to Latest
function useNormalArray
import { useNormalArray } from "https://deno.land/x/netsaur@0.4.0-patch/packages/utilities/src/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.