Skip to content

Latest commit

 

History

History
86 lines (40 loc) · 1.18 KB

File metadata and controls

86 lines (40 loc) · 1.18 KB

Home > @josh-brown/vector > MatrixBuilder > randomNormal

MatrixBuilder.randomNormal() method

Constructs a matrix of the specified size whose entries are normally distributed with the specified mean and standard deviation.

Signature:

randomNormal(shape: MatrixShape, mean?: number, standardDeviation?: number): M;

Parameters

Parameter

Type

Description

shape

MatrixShape

The shape of the matrix as a tuple [m, n]

mean

number

(Optional) The center of the distribution of random numbers to include

standardDeviation

number

(Optional) The standard deviation of the distribution of random numbers to include

Returns:

M