@@ -61,6 +61,29 @@ var out = normal( 10, 2.0, 5.0, opts );
61
61
// returns [...]
62
62
```
63
63
64
+ #### normal.assign( mu, sigma, out )
65
+
66
+ Fills an array with pseudorandom numbers drawn from a [ normal] [ @stdlib/random/base/normal ] distribution.
67
+
68
+ ``` javascript
69
+ var zeros = require ( ' @stdlib/array/zeros' );
70
+
71
+ var x = zeros ( 10 , ' float64' );
72
+ // returns <Float64Array>
73
+
74
+ var out = normal .assign ( 2.0 , 5.0 , x );
75
+ // returns <Float64Array>
76
+
77
+ var bool = ( out === x );
78
+ // returns true
79
+ ```
80
+
81
+ The function has the following parameters:
82
+
83
+ - ** mu** : mean.
84
+ - ** sigma** : standard deviation.
85
+ - ** out** : output array.
86
+
64
87
#### normal.factory( \[ mu, sigma, ] \[ options] )
65
88
66
89
Returns a function for creating arrays containing pseudorandom numbers drawn from a [ normal] [ @stdlib/random/base/normal ] distribution.
@@ -75,7 +98,7 @@ var len = out.length;
75
98
// returns 10
76
99
```
77
100
78
- If provided ` mu ` and ` sigma ` , the returned generator returns random variates from the specified distribution.
101
+ If provided distribution parameters , the returned generator returns random variates from the specified distribution.
79
102
80
103
``` javascript
81
104
var random = normal .factory ( 2.0 , 5.0 );
@@ -87,7 +110,7 @@ out = random( 10 );
87
110
// returns <Float64Array>
88
111
```
89
112
90
- If not provided ` mu ` and ` sigma ` , the returned generator requires that both parameters be provided at each invocation.
113
+ If not provided distribution parameters , the returned generator requires that distribution parameters be provided at each invocation.
91
114
92
115
``` javascript
93
116
var random = normal .factory ();
@@ -331,13 +354,6 @@ logEach( '%f', x4 );
331
354
332
355
<section class =" related " >
333
356
334
- * * *
335
-
336
- ## See Also
337
-
338
- - <span class =" package-name " >[ ` @stdlib/random/base/normal ` ] [ @stdlib/random/base/normal ] </span ><span class =" delimiter " >: </span ><span class =" description " >normally distributed pseudorandom numbers.</span >
339
- - <span class =" package-name " >[ ` @stdlib/random/strided/normal ` ] [ @stdlib/random/strided/normal ] </span ><span class =" delimiter " >: </span ><span class =" description " >fill a strided array with pseudorandom numbers drawn from a normal distribution.</span >
340
-
341
357
</section >
342
358
343
359
<!-- /.related -->
@@ -354,12 +370,6 @@ logEach( '%f', x4 );
354
370
355
371
[ @stdlib/array/float64 ] : https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/float64
356
372
357
- <!-- <related-links> -->
358
-
359
- [ @stdlib/random/strided/normal ] : https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/strided/normal
360
-
361
- <!-- </related-links> -->
362
-
363
373
</section >
364
374
365
375
<!-- /.links -->
0 commit comments