Home > @josh-brown/vector > MatrixBuilder > randomNormal
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;|
Parameter |
Type |
Description |
|---|---|---|
|
shape |
The shape of the matrix as a tuple | |
|
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