@stdlib/random-array 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2023 The Stdlib Authors.
1
+ Copyright (c) 2016-2024 The Stdlib Authors.
package/README.md CHANGED
@@ -69,20 +69,42 @@ The namespace contains the following:
69
69
  <div class="namespace-toc">
70
70
 
71
71
  - <span class="signature">[`arcsine( len, a, b[, options] )`][@stdlib/random/array/arcsine]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from an arcsine distribution.</span>
72
+ - <span class="signature">[`bernoulli( len, p[, options] )`][@stdlib/random/array/bernoulli]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a Bernoulli distribution.</span>
72
73
  - <span class="signature">[`beta( len, alpha, beta[, options] )`][@stdlib/random/array/beta]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a beta distribution.</span>
73
74
  - <span class="signature">[`betaprime( len, alpha, beta[, options] )`][@stdlib/random/array/betaprime]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a beta prime distribution.</span>
75
+ - <span class="signature">[`binomial( len, n, p[, options] )`][@stdlib/random/array/binomial]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a binomial distribution.</span>
76
+ - <span class="signature">[`cauchy( len, x0, gamma[, options] )`][@stdlib/random/array/cauchy]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a Cauchy distribution.</span>
77
+ - <span class="signature">[`chi( len, k[, options] )`][@stdlib/random/array/chi]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a chi distribution.</span>
78
+ - <span class="signature">[`chisquare( len, k[, options] )`][@stdlib/random/array/chisquare]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a chi-square distribution.</span>
74
79
  - <span class="signature">[`cosine( len, mu, s[, options] )`][@stdlib/random/array/cosine]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a raised cosine distribution.</span>
75
80
  - <span class="signature">[`discreteUniform( len, a, b[, options] )`][@stdlib/random/array/discrete-uniform]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a discrete uniform distribution.</span>
81
+ - <span class="signature">[`erlang( len, k, lambda[, options] )`][@stdlib/random/array/erlang]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from an Erlang distribution.</span>
76
82
  - <span class="signature">[`exponential( len, lambda[, options] )`][@stdlib/random/array/exponential]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from an exponential distribution.</span>
83
+ - <span class="signature">[`f( len, d1, d2[, options] )`][@stdlib/random/array/f]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from an F distribution.</span>
84
+ - <span class="signature">[`frechet( len, alpha, s, m[, options] )`][@stdlib/random/array/frechet]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a Fréchet distribution.</span>
77
85
  - <span class="signature">[`gamma( len, alpha, beta[, options] )`][@stdlib/random/array/gamma]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a gamma distribution.</span>
78
- - <span class="signature">[`invgamma( len, alpha, beta[, options] )`][@stdlib/random/array/invgamma]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from an inverse gamma distribution.</span>
86
+ - <span class="signature">[`geometric( len, p[, options] )`][@stdlib/random/array/geometric]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a geometric distribution.</span>
87
+ - <span class="signature">[`gumbel( len, mu, beta[, options] )`][@stdlib/random/array/gumbel]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a Gumbel distribution.</span>
88
+ - <span class="signature">[`hypergeometric( len, N, K, n[, options] )`][@stdlib/random/array/hypergeometric]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a hypergeometric distribution.</span>
89
+ - <span class="signature">[`invgamma( len, alpha, beta[, options] )`][@stdlib/random/array/invgamma]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a inverse gamma distribution.</span>
90
+ - <span class="signature">[`kumaraswamy( len, a, b[, options] )`][@stdlib/random/array/kumaraswamy]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from Kumaraswamy's double bounded distribution.</span>
91
+ - <span class="signature">[`laplace( len, mu, b[, options] )`][@stdlib/random/array/laplace]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a Laplace (double exponential) distribution.</span>
92
+ - <span class="signature">[`levy( len, mu, c[, options] )`][@stdlib/random/array/levy]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a Lévy distribution.</span>
93
+ - <span class="signature">[`logistic( len, mu, s[, options] )`][@stdlib/random/array/logistic]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a logistic distribution.</span>
79
94
  - <span class="signature">[`lognormal( len, mu, sigma[, options] )`][@stdlib/random/array/lognormal]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a lognormal distribution.</span>
80
95
  - <span class="signature">[`minstdShuffle( len[, options] )`][@stdlib/random/array/minstd-shuffle]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers generated using a linear congruential pseudorandom number generator (LCG) whose output is shuffled.</span>
81
96
  - <span class="signature">[`minstd( len[, options] )`][@stdlib/random/array/minstd]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers generated using a linear congruential pseudorandom number generator (LCG).</span>
82
97
  - <span class="signature">[`mt19937( len[, options] )`][@stdlib/random/array/mt19937]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers generated using a 32-bit Mersenne Twister pseudorandom number generator.</span>
98
+ - <span class="signature">[`negativeBinomial( len, r, p[, options] )`][@stdlib/random/array/negative-binomial]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a negative binomial distribution.</span>
83
99
  - <span class="signature">[`normal( len, mu, sigma[, options] )`][@stdlib/random/array/normal]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a normal distribution.</span>
100
+ - <span class="signature">[`pareto1( len, alpha, beta[, options] )`][@stdlib/random/array/pareto-type1]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a Pareto (Type I) distribution.</span>
101
+ - <span class="signature">[`poisson( len, lambda[, options] )`][@stdlib/random/array/poisson]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a Poisson distribution.</span>
84
102
  - <span class="signature">[`randu( len[, options] )`][@stdlib/random/array/randu]</span><span class="delimiter">: </span><span class="description">create an array containing uniformly distributed pseudorandom numbers between `0` and `1`.</span>
103
+ - <span class="signature">[`rayleigh( len, sigma[, options] )`][@stdlib/random/array/rayleigh]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a Rayleigh distribution.</span>
104
+ - <span class="signature">[`t( len, v[, options] )`][@stdlib/random/array/t]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a Student's t-distribution.</span>
105
+ - <span class="signature">[`triangular( len, a, b, c[, options] )`][@stdlib/random/array/triangular]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a triangular distribution.</span>
85
106
  - <span class="signature">[`uniform( len, a, b[, options] )`][@stdlib/random/array/uniform]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a continuous uniform distribution.</span>
107
+ - <span class="signature">[`weibull( len, k, lambda[, options] )`][@stdlib/random/array/weibull]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a Weibull distribution.</span>
86
108
 
87
109
  </div>
88
110
 
@@ -145,7 +167,7 @@ See [LICENSE][stdlib-license].
145
167
 
146
168
  ## Copyright
147
169
 
148
- Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
170
+ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
149
171
 
150
172
  </section>
151
173
 
@@ -158,8 +180,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
158
180
  [npm-image]: http://img.shields.io/npm/v/@stdlib/random-array.svg
159
181
  [npm-url]: https://npmjs.org/package/@stdlib/random-array
160
182
 
161
- [test-image]: https://github.com/stdlib-js/random-array/actions/workflows/test.yml/badge.svg?branch=v0.1.0
162
- [test-url]: https://github.com/stdlib-js/random-array/actions/workflows/test.yml?query=branch:v0.1.0
183
+ [test-image]: https://github.com/stdlib-js/random-array/actions/workflows/test.yml/badge.svg?branch=v0.2.1
184
+ [test-url]: https://github.com/stdlib-js/random-array/actions/workflows/test.yml?query=branch:v0.2.1
163
185
 
164
186
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/random-array/main.svg
165
187
  [coverage-url]: https://codecov.io/github/stdlib-js/random-array?branch=main
@@ -182,8 +204,11 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
182
204
  [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
183
205
 
184
206
  [deno-url]: https://github.com/stdlib-js/random-array/tree/deno
207
+ [deno-readme]: https://github.com/stdlib-js/random-array/blob/deno/README.md
185
208
  [umd-url]: https://github.com/stdlib-js/random-array/tree/umd
209
+ [umd-readme]: https://github.com/stdlib-js/random-array/blob/umd/README.md
186
210
  [esm-url]: https://github.com/stdlib-js/random-array/tree/esm
211
+ [esm-readme]: https://github.com/stdlib-js/random-array/blob/esm/README.md
187
212
  [branches-url]: https://github.com/stdlib-js/random-array/blob/main/branches.md
188
213
 
189
214
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/random-array/main/LICENSE
@@ -192,20 +217,50 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
192
217
 
193
218
  [@stdlib/random/array/arcsine]: https://www.npmjs.com/package/@stdlib/random-array-arcsine
194
219
 
220
+ [@stdlib/random/array/bernoulli]: https://www.npmjs.com/package/@stdlib/random-array-bernoulli
221
+
195
222
  [@stdlib/random/array/beta]: https://www.npmjs.com/package/@stdlib/random-array-beta
196
223
 
197
224
  [@stdlib/random/array/betaprime]: https://www.npmjs.com/package/@stdlib/random-array-betaprime
198
225
 
226
+ [@stdlib/random/array/binomial]: https://www.npmjs.com/package/@stdlib/random-array-binomial
227
+
228
+ [@stdlib/random/array/cauchy]: https://www.npmjs.com/package/@stdlib/random-array-cauchy
229
+
230
+ [@stdlib/random/array/chi]: https://www.npmjs.com/package/@stdlib/random-array-chi
231
+
232
+ [@stdlib/random/array/chisquare]: https://www.npmjs.com/package/@stdlib/random-array-chisquare
233
+
199
234
  [@stdlib/random/array/cosine]: https://www.npmjs.com/package/@stdlib/random-array-cosine
200
235
 
201
236
  [@stdlib/random/array/discrete-uniform]: https://www.npmjs.com/package/@stdlib/random-array-discrete-uniform
202
237
 
238
+ [@stdlib/random/array/erlang]: https://www.npmjs.com/package/@stdlib/random-array-erlang
239
+
203
240
  [@stdlib/random/array/exponential]: https://www.npmjs.com/package/@stdlib/random-array-exponential
204
241
 
242
+ [@stdlib/random/array/f]: https://www.npmjs.com/package/@stdlib/random-array-f
243
+
244
+ [@stdlib/random/array/frechet]: https://www.npmjs.com/package/@stdlib/random-array-frechet
245
+
205
246
  [@stdlib/random/array/gamma]: https://www.npmjs.com/package/@stdlib/random-array-gamma
206
247
 
248
+ [@stdlib/random/array/geometric]: https://www.npmjs.com/package/@stdlib/random-array-geometric
249
+
250
+ [@stdlib/random/array/gumbel]: https://www.npmjs.com/package/@stdlib/random-array-gumbel
251
+
252
+ [@stdlib/random/array/hypergeometric]: https://www.npmjs.com/package/@stdlib/random-array-hypergeometric
253
+
207
254
  [@stdlib/random/array/invgamma]: https://www.npmjs.com/package/@stdlib/random-array-invgamma
208
255
 
256
+ [@stdlib/random/array/kumaraswamy]: https://www.npmjs.com/package/@stdlib/random-array-kumaraswamy
257
+
258
+ [@stdlib/random/array/laplace]: https://www.npmjs.com/package/@stdlib/random-array-laplace
259
+
260
+ [@stdlib/random/array/levy]: https://www.npmjs.com/package/@stdlib/random-array-levy
261
+
262
+ [@stdlib/random/array/logistic]: https://www.npmjs.com/package/@stdlib/random-array-logistic
263
+
209
264
  [@stdlib/random/array/lognormal]: https://www.npmjs.com/package/@stdlib/random-array-lognormal
210
265
 
211
266
  [@stdlib/random/array/minstd-shuffle]: https://www.npmjs.com/package/@stdlib/random-array-minstd-shuffle
@@ -214,12 +269,26 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
214
269
 
215
270
  [@stdlib/random/array/mt19937]: https://www.npmjs.com/package/@stdlib/random-array-mt19937
216
271
 
272
+ [@stdlib/random/array/negative-binomial]: https://www.npmjs.com/package/@stdlib/random-array-negative-binomial
273
+
217
274
  [@stdlib/random/array/normal]: https://www.npmjs.com/package/@stdlib/random-array-normal
218
275
 
276
+ [@stdlib/random/array/pareto-type1]: https://www.npmjs.com/package/@stdlib/random-array-pareto-type1
277
+
278
+ [@stdlib/random/array/poisson]: https://www.npmjs.com/package/@stdlib/random-array-poisson
279
+
219
280
  [@stdlib/random/array/randu]: https://www.npmjs.com/package/@stdlib/random-array-randu
220
281
 
282
+ [@stdlib/random/array/rayleigh]: https://www.npmjs.com/package/@stdlib/random-array-rayleigh
283
+
284
+ [@stdlib/random/array/t]: https://www.npmjs.com/package/@stdlib/random-array-t
285
+
286
+ [@stdlib/random/array/triangular]: https://www.npmjs.com/package/@stdlib/random-array-triangular
287
+
221
288
  [@stdlib/random/array/uniform]: https://www.npmjs.com/package/@stdlib/random-array-uniform
222
289
 
290
+ [@stdlib/random/array/weibull]: https://www.npmjs.com/package/@stdlib/random-array-weibull
291
+
223
292
  <!-- </toc-links> -->
224
293
 
225
294
  </section>
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";var r=require('@stdlib/utils-define-read-only-property/dist'),e={};r(e,"arcsine",require('@stdlib/random-array-arcsine/dist'));r(e,"beta",require('@stdlib/random-array-beta/dist'));r(e,"betaprime",require('@stdlib/random-array-betaprime/dist'));r(e,"cosine",require('@stdlib/random-array-cosine/dist'));r(e,"discreteUniform",require('@stdlib/random-array-discrete-uniform/dist'));r(e,"exponential",require('@stdlib/random-array-exponential/dist'));r(e,"gamma",require('@stdlib/random-array-gamma/dist'));r(e,"invgamma",require('@stdlib/random-array-invgamma/dist'));r(e,"lognormal",require('@stdlib/random-array-lognormal/dist'));r(e,"minstd",require('@stdlib/random-array-minstd/dist'));r(e,"minstdShuffle",require('@stdlib/random-array-minstd-shuffle/dist'));r(e,"mt19937",require('@stdlib/random-array-mt19937/dist'));r(e,"normal",require('@stdlib/random-array-normal/dist'));r(e,"randu",require('@stdlib/random-array-randu/dist'));r(e,"uniform",require('@stdlib/random-array-uniform/dist'));module.exports=e;
1
+ "use strict";var r=require('@stdlib/utils-define-read-only-property/dist'),e={};r(e,"arcsine",require('@stdlib/random-array-arcsine/dist'));r(e,"bernoulli",require('@stdlib/random-array-bernoulli/dist'));r(e,"beta",require('@stdlib/random-array-beta/dist'));r(e,"betaprime",require('@stdlib/random-array-betaprime/dist'));r(e,"binomial",require('@stdlib/random-array-binomial/dist'));r(e,"cauchy",require('@stdlib/random-array-cauchy/dist'));r(e,"chi",require('@stdlib/random-array-chi/dist'));r(e,"chisquare",require('@stdlib/random-array-chisquare/dist'));r(e,"cosine",require('@stdlib/random-array-cosine/dist'));r(e,"discreteUniform",require('@stdlib/random-array-discrete-uniform/dist'));r(e,"erlang",require('@stdlib/random-array-erlang/dist'));r(e,"exponential",require('@stdlib/random-array-exponential/dist'));r(e,"f",require('@stdlib/random-array-f/dist'));r(e,"frechet",require('@stdlib/random-array-frechet/dist'));r(e,"gamma",require('@stdlib/random-array-gamma/dist'));r(e,"geometric",require('@stdlib/random-array-geometric/dist'));r(e,"gumbel",require('@stdlib/random-array-gumbel/dist'));r(e,"hypergeometric",require('@stdlib/random-array-hypergeometric/dist'));r(e,"invgamma",require('@stdlib/random-array-invgamma/dist'));r(e,"kumaraswamy",require('@stdlib/random-array-kumaraswamy/dist'));r(e,"laplace",require('@stdlib/random-array-laplace/dist'));r(e,"levy",require('@stdlib/random-array-levy/dist'));r(e,"logistic",require('@stdlib/random-array-logistic/dist'));r(e,"lognormal",require('@stdlib/random-array-lognormal/dist'));r(e,"minstd",require('@stdlib/random-array-minstd/dist'));r(e,"minstdShuffle",require('@stdlib/random-array-minstd-shuffle/dist'));r(e,"mt19937",require('@stdlib/random-array-mt19937/dist'));r(e,"negativeBinomial",require('@stdlib/random-array-negative-binomial/dist'));r(e,"normal",require('@stdlib/random-array-normal/dist'));r(e,"pareto1",require('@stdlib/random-array-pareto-type1/dist'));r(e,"poisson",require('@stdlib/random-array-poisson/dist'));r(e,"randu",require('@stdlib/random-array-randu/dist'));r(e,"rayleigh",require('@stdlib/random-array-rayleigh/dist'));r(e,"t",require('@stdlib/random-array-t/dist'));r(e,"triangular",require('@stdlib/random-array-triangular/dist'));r(e,"uniform",require('@stdlib/random-array-uniform/dist'));r(e,"weibull",require('@stdlib/random-array-weibull/dist'));module.exports=e;
2
2
  /** @license Apache-2.0 */
3
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../lib/index.js"],
4
- "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/*\n* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-read-only-property' );\n\n\n// MAIN //\n\n/**\n* Top-level namespace.\n*\n* @namespace ns\n*/\nvar ns = {};\n\n/**\n* @name arcsine\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/arcsine}\n*/\nsetReadOnly( ns, 'arcsine', require( '@stdlib/random-array-arcsine' ) );\n\n/**\n* @name beta\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/beta}\n*/\nsetReadOnly( ns, 'beta', require( '@stdlib/random-array-beta' ) );\n\n/**\n* @name betaprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/betaprime}\n*/\nsetReadOnly( ns, 'betaprime', require( '@stdlib/random-array-betaprime' ) );\n\n/**\n* @name cosine\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/cosine}\n*/\nsetReadOnly( ns, 'cosine', require( '@stdlib/random-array-cosine' ) );\n\n/**\n* @name discreteUniform\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/discrete-uniform}\n*/\nsetReadOnly( ns, 'discreteUniform', require( '@stdlib/random-array-discrete-uniform' ) );\n\n/**\n* @name exponential\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/exponential}\n*/\nsetReadOnly( ns, 'exponential', require( '@stdlib/random-array-exponential' ) );\n\n/**\n* @name gamma\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/gamma}\n*/\nsetReadOnly( ns, 'gamma', require( '@stdlib/random-array-gamma' ) );\n\n/**\n* @name invgamma\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/invgamma}\n*/\nsetReadOnly( ns, 'invgamma', require( '@stdlib/random-array-invgamma' ) );\n\n/**\n* @name lognormal\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/lognormal}\n*/\nsetReadOnly( ns, 'lognormal', require( '@stdlib/random-array-lognormal' ) );\n\n/**\n* @name minstd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/minstd}\n*/\nsetReadOnly( ns, 'minstd', require( '@stdlib/random-array-minstd' ) );\n\n/**\n* @name minstdShuffle\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/minstd-shuffle}\n*/\nsetReadOnly( ns, 'minstdShuffle', require( '@stdlib/random-array-minstd-shuffle' ) );\n\n/**\n* @name mt19937\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/mt19937}\n*/\nsetReadOnly( ns, 'mt19937', require( '@stdlib/random-array-mt19937' ) );\n\n/**\n* @name normal\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/normal}\n*/\nsetReadOnly( ns, 'normal', require( '@stdlib/random-array-normal' ) );\n\n/**\n* @name randu\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/randu}\n*/\nsetReadOnly( ns, 'randu', require( '@stdlib/random-array-randu' ) );\n\n/**\n* @name uniform\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/uniform}\n*/\nsetReadOnly( ns, 'uniform', require( '@stdlib/random-array-uniform' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"],
5
- "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,UAAW,QAAS,8BAA+B,CAAE,EAStED,EAAaC,EAAI,OAAQ,QAAS,2BAA4B,CAAE,EAShED,EAAaC,EAAI,YAAa,QAAS,gCAAiC,CAAE,EAS1ED,EAAaC,EAAI,SAAU,QAAS,6BAA8B,CAAE,EASpED,EAAaC,EAAI,kBAAmB,QAAS,uCAAwC,CAAE,EASvFD,EAAaC,EAAI,cAAe,QAAS,kCAAmC,CAAE,EAS9ED,EAAaC,EAAI,QAAS,QAAS,4BAA6B,CAAE,EASlED,EAAaC,EAAI,WAAY,QAAS,+BAAgC,CAAE,EASxED,EAAaC,EAAI,YAAa,QAAS,gCAAiC,CAAE,EAS1ED,EAAaC,EAAI,SAAU,QAAS,6BAA8B,CAAE,EASpED,EAAaC,EAAI,gBAAiB,QAAS,qCAAsC,CAAE,EASnFD,EAAaC,EAAI,UAAW,QAAS,8BAA+B,CAAE,EAStED,EAAaC,EAAI,SAAU,QAAS,6BAA8B,CAAE,EASpED,EAAaC,EAAI,QAAS,QAAS,4BAA6B,CAAE,EASlED,EAAaC,EAAI,UAAW,QAAS,8BAA+B,CAAE,EAKtE,OAAO,QAAUA",
4
+ "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/*\n* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-read-only-property' );\n\n\n// MAIN //\n\n/**\n* Top-level namespace.\n*\n* @namespace ns\n*/\nvar ns = {};\n\n/**\n* @name arcsine\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/arcsine}\n*/\nsetReadOnly( ns, 'arcsine', require( '@stdlib/random-array-arcsine' ) );\n\n/**\n* @name bernoulli\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/bernoulli}\n*/\nsetReadOnly( ns, 'bernoulli', require( '@stdlib/random-array-bernoulli' ) );\n\n/**\n* @name beta\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/beta}\n*/\nsetReadOnly( ns, 'beta', require( '@stdlib/random-array-beta' ) );\n\n/**\n* @name betaprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/betaprime}\n*/\nsetReadOnly( ns, 'betaprime', require( '@stdlib/random-array-betaprime' ) );\n\n/**\n* @name binomial\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/binomial}\n*/\nsetReadOnly( ns, 'binomial', require( '@stdlib/random-array-binomial' ) );\n\n/**\n* @name cauchy\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/cauchy}\n*/\nsetReadOnly( ns, 'cauchy', require( '@stdlib/random-array-cauchy' ) );\n\n/**\n* @name chi\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/chi}\n*/\nsetReadOnly( ns, 'chi', require( '@stdlib/random-array-chi' ) );\n\n/**\n* @name chisquare\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/chisquare}\n*/\nsetReadOnly( ns, 'chisquare', require( '@stdlib/random-array-chisquare' ) );\n\n/**\n* @name cosine\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/cosine}\n*/\nsetReadOnly( ns, 'cosine', require( '@stdlib/random-array-cosine' ) );\n\n/**\n* @name discreteUniform\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/discrete-uniform}\n*/\nsetReadOnly( ns, 'discreteUniform', require( '@stdlib/random-array-discrete-uniform' ) );\n\n/**\n* @name erlang\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/erlang}\n*/\nsetReadOnly( ns, 'erlang', require( '@stdlib/random-array-erlang' ) );\n\n/**\n* @name exponential\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/exponential}\n*/\nsetReadOnly( ns, 'exponential', require( '@stdlib/random-array-exponential' ) );\n\n/**\n* @name f\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/f}\n*/\nsetReadOnly( ns, 'f', require( '@stdlib/random-array-f' ) );\n\n/**\n* @name frechet\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/frechet}\n*/\nsetReadOnly( ns, 'frechet', require( '@stdlib/random-array-frechet' ) );\n\n/**\n* @name gamma\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/gamma}\n*/\nsetReadOnly( ns, 'gamma', require( '@stdlib/random-array-gamma' ) );\n\n/**\n* @name geometric\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/geometric}\n*/\nsetReadOnly( ns, 'geometric', require( '@stdlib/random-array-geometric' ) );\n\n/**\n* @name gumbel\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/gumbel}\n*/\nsetReadOnly( ns, 'gumbel', require( '@stdlib/random-array-gumbel' ) );\n\n/**\n* @name hypergeometric\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/hypergeometric}\n*/\nsetReadOnly( ns, 'hypergeometric', require( '@stdlib/random-array-hypergeometric' ) );\n\n/**\n* @name invgamma\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/invgamma}\n*/\nsetReadOnly( ns, 'invgamma', require( '@stdlib/random-array-invgamma' ) );\n\n/**\n* @name kumaraswamy\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/kumaraswamy}\n*/\nsetReadOnly( ns, 'kumaraswamy', require( '@stdlib/random-array-kumaraswamy' ) );\n\n/**\n* @name laplace\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/laplace}\n*/\nsetReadOnly( ns, 'laplace', require( '@stdlib/random-array-laplace' ) );\n\n/**\n* @name levy\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/levy}\n*/\nsetReadOnly( ns, 'levy', require( '@stdlib/random-array-levy' ) );\n\n/**\n* @name logistic\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/logistic}\n*/\nsetReadOnly( ns, 'logistic', require( '@stdlib/random-array-logistic' ) );\n\n/**\n* @name lognormal\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/lognormal}\n*/\nsetReadOnly( ns, 'lognormal', require( '@stdlib/random-array-lognormal' ) );\n\n/**\n* @name minstd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/minstd}\n*/\nsetReadOnly( ns, 'minstd', require( '@stdlib/random-array-minstd' ) );\n\n/**\n* @name minstdShuffle\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/minstd-shuffle}\n*/\nsetReadOnly( ns, 'minstdShuffle', require( '@stdlib/random-array-minstd-shuffle' ) );\n\n/**\n* @name mt19937\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/mt19937}\n*/\nsetReadOnly( ns, 'mt19937', require( '@stdlib/random-array-mt19937' ) );\n\n/**\n* @name negativeBinomial\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/negative-binomial}\n*/\nsetReadOnly( ns, 'negativeBinomial', require( '@stdlib/random-array-negative-binomial' ) );\n\n/**\n* @name normal\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/normal}\n*/\nsetReadOnly( ns, 'normal', require( '@stdlib/random-array-normal' ) );\n\n/**\n* @name pareto1\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/pareto-type1}\n*/\nsetReadOnly( ns, 'pareto1', require( '@stdlib/random-array-pareto-type1' ) );\n\n/**\n* @name poisson\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/poisson}\n*/\nsetReadOnly( ns, 'poisson', require( '@stdlib/random-array-poisson' ) );\n\n/**\n* @name randu\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/randu}\n*/\nsetReadOnly( ns, 'randu', require( '@stdlib/random-array-randu' ) );\n\n/**\n* @name rayleigh\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/rayleigh}\n*/\nsetReadOnly( ns, 'rayleigh', require( '@stdlib/random-array-rayleigh' ) );\n\n/**\n* @name t\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/t}\n*/\nsetReadOnly( ns, 't', require( '@stdlib/random-array-t' ) );\n\n/**\n* @name triangular\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/triangular}\n*/\nsetReadOnly( ns, 'triangular', require( '@stdlib/random-array-triangular' ) );\n\n/**\n* @name uniform\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/uniform}\n*/\nsetReadOnly( ns, 'uniform', require( '@stdlib/random-array-uniform' ) );\n\n/**\n* @name weibull\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/random/array/weibull}\n*/\nsetReadOnly( ns, 'weibull', require( '@stdlib/random-array-weibull' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"],
5
+ "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,UAAW,QAAS,8BAA+B,CAAE,EAStED,EAAaC,EAAI,YAAa,QAAS,gCAAiC,CAAE,EAS1ED,EAAaC,EAAI,OAAQ,QAAS,2BAA4B,CAAE,EAShED,EAAaC,EAAI,YAAa,QAAS,gCAAiC,CAAE,EAS1ED,EAAaC,EAAI,WAAY,QAAS,+BAAgC,CAAE,EASxED,EAAaC,EAAI,SAAU,QAAS,6BAA8B,CAAE,EASpED,EAAaC,EAAI,MAAO,QAAS,0BAA2B,CAAE,EAS9DD,EAAaC,EAAI,YAAa,QAAS,gCAAiC,CAAE,EAS1ED,EAAaC,EAAI,SAAU,QAAS,6BAA8B,CAAE,EASpED,EAAaC,EAAI,kBAAmB,QAAS,uCAAwC,CAAE,EASvFD,EAAaC,EAAI,SAAU,QAAS,6BAA8B,CAAE,EASpED,EAAaC,EAAI,cAAe,QAAS,kCAAmC,CAAE,EAS9ED,EAAaC,EAAI,IAAK,QAAS,wBAAyB,CAAE,EAS1DD,EAAaC,EAAI,UAAW,QAAS,8BAA+B,CAAE,EAStED,EAAaC,EAAI,QAAS,QAAS,4BAA6B,CAAE,EASlED,EAAaC,EAAI,YAAa,QAAS,gCAAiC,CAAE,EAS1ED,EAAaC,EAAI,SAAU,QAAS,6BAA8B,CAAE,EASpED,EAAaC,EAAI,iBAAkB,QAAS,qCAAsC,CAAE,EASpFD,EAAaC,EAAI,WAAY,QAAS,+BAAgC,CAAE,EASxED,EAAaC,EAAI,cAAe,QAAS,kCAAmC,CAAE,EAS9ED,EAAaC,EAAI,UAAW,QAAS,8BAA+B,CAAE,EAStED,EAAaC,EAAI,OAAQ,QAAS,2BAA4B,CAAE,EAShED,EAAaC,EAAI,WAAY,QAAS,+BAAgC,CAAE,EASxED,EAAaC,EAAI,YAAa,QAAS,gCAAiC,CAAE,EAS1ED,EAAaC,EAAI,SAAU,QAAS,6BAA8B,CAAE,EASpED,EAAaC,EAAI,gBAAiB,QAAS,qCAAsC,CAAE,EASnFD,EAAaC,EAAI,UAAW,QAAS,8BAA+B,CAAE,EAStED,EAAaC,EAAI,mBAAoB,QAAS,wCAAyC,CAAE,EASzFD,EAAaC,EAAI,SAAU,QAAS,6BAA8B,CAAE,EASpED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,UAAW,QAAS,8BAA+B,CAAE,EAStED,EAAaC,EAAI,QAAS,QAAS,4BAA6B,CAAE,EASlED,EAAaC,EAAI,WAAY,QAAS,+BAAgC,CAAE,EASxED,EAAaC,EAAI,IAAK,QAAS,wBAAyB,CAAE,EAS1DD,EAAaC,EAAI,aAAc,QAAS,iCAAkC,CAAE,EAS5ED,EAAaC,EAAI,UAAW,QAAS,8BAA+B,CAAE,EAStED,EAAaC,EAAI,UAAW,QAAS,8BAA+B,CAAE,EAKtE,OAAO,QAAUA",
6
6
  "names": ["setReadOnly", "ns"]
7
7
  }
@@ -18,31 +18,52 @@
18
18
 
19
19
  // TypeScript Version: 4.1
20
20
 
21
- /* tslint:disable:max-line-length */
22
- /* tslint:disable:max-file-line-count */
21
+ /* eslint-disable max-lines */
23
22
 
24
23
  import arcsine = require( '@stdlib/random-array-arcsine' );
24
+ import bernoulli = require( '@stdlib/random-array-bernoulli' );
25
25
  import beta = require( '@stdlib/random-array-beta' );
26
26
  import betaprime = require( '@stdlib/random-array-betaprime' );
27
+ import binomial = require( '@stdlib/random-array-binomial' );
28
+ import cauchy = require( '@stdlib/random-array-cauchy' );
29
+ import chi = require( '@stdlib/random-array-chi' );
30
+ import chisquare = require( '@stdlib/random-array-chisquare' );
27
31
  import cosine = require( '@stdlib/random-array-cosine' );
28
32
  import discreteUniform = require( '@stdlib/random-array-discrete-uniform' );
33
+ import erlang = require( '@stdlib/random-array-erlang' );
29
34
  import exponential = require( '@stdlib/random-array-exponential' );
35
+ import f = require( '@stdlib/random-array-f' );
36
+ import frechet = require( '@stdlib/random-array-frechet' );
30
37
  import gamma = require( '@stdlib/random-array-gamma' );
38
+ import geometric = require( '@stdlib/random-array-geometric' );
39
+ import gumbel = require( '@stdlib/random-array-gumbel' );
40
+ import hypergeometric = require( '@stdlib/random-array-hypergeometric' );
31
41
  import invgamma = require( '@stdlib/random-array-invgamma' );
42
+ import kumaraswamy = require( '@stdlib/random-array-kumaraswamy' );
43
+ import laplace = require( '@stdlib/random-array-laplace' );
44
+ import levy = require( '@stdlib/random-array-levy' );
45
+ import logistic = require( '@stdlib/random-array-logistic' );
32
46
  import lognormal = require( '@stdlib/random-array-lognormal' );
33
47
  import minstd = require( '@stdlib/random-array-minstd' );
34
48
  import minstdShuffle = require( '@stdlib/random-array-minstd-shuffle' );
35
49
  import mt19937 = require( '@stdlib/random-array-mt19937' );
50
+ import negativeBinomial = require( '@stdlib/random-array-negative-binomial' );
36
51
  import normal = require( '@stdlib/random-array-normal' );
52
+ import pareto1 = require( '@stdlib/random-array-pareto-type1' );
53
+ import poisson = require( '@stdlib/random-array-poisson' );
37
54
  import randu = require( '@stdlib/random-array-randu' );
55
+ import rayleigh = require( '@stdlib/random-array-rayleigh' );
56
+ import t = require( '@stdlib/random-array-t' );
57
+ import triangular = require( '@stdlib/random-array-triangular' );
38
58
  import uniform = require( '@stdlib/random-array-uniform' );
59
+ import weibull = require( '@stdlib/random-array-weibull' );
39
60
 
40
61
  /**
41
62
  * Interface describing the `array` namespace.
42
63
  */
43
64
  interface Namespace {
44
65
  /**
45
- * Returns an array containing pseudorandom numbers drawn from an arcsine distribution with minimum support `a` and maximum support `b`.
66
+ * Returns an array containing pseudorandom numbers drawn from an arcsine distribution.
46
67
  *
47
68
  * @param len - array length
48
69
  * @param a - minimum support
@@ -63,7 +84,27 @@ interface Namespace {
63
84
  arcsine: typeof arcsine;
64
85
 
65
86
  /**
66
- * Returns an array containing pseudorandom numbers drawn from a beta distribution with parameters `alpha` (first shape parameter) and `beta` (second shape parameter).
87
+ * Returns an array containing pseudorandom numbers drawn from a Bernoulli distribution.
88
+ *
89
+ * @param len - array length
90
+ * @param p - success probability
91
+ * @param options - function options
92
+ * @returns output array
93
+ *
94
+ * @example
95
+ * var out = ns.bernoulli( 10, 0.5 );
96
+ * // returns <Float64Array>
97
+ *
98
+ * @example
99
+ * var random = ns.bernoulli.factory( 0.5 );
100
+ *
101
+ * var out = random( 10 );
102
+ * // returns <Float64Array>
103
+ */
104
+ bernoulli: typeof bernoulli;
105
+
106
+ /**
107
+ * Returns an array containing pseudorandom numbers drawn from a beta distribution.
67
108
  *
68
109
  * @param len - array length
69
110
  * @param alpha - first shape parameter
@@ -84,7 +125,7 @@ interface Namespace {
84
125
  beta: typeof beta;
85
126
 
86
127
  /**
87
- * Returns an array containing pseudorandom numbers drawn from a beta prime distribution with parameters `alpha` (first shape parameter) and `beta` (second shape parameter).
128
+ * Returns an array containing pseudorandom numbers drawn from a beta prime distribution.
88
129
  *
89
130
  * @param len - array length
90
131
  * @param alpha - first shape parameter
@@ -105,7 +146,89 @@ interface Namespace {
105
146
  betaprime: typeof betaprime;
106
147
 
107
148
  /**
108
- * Returns an array containing pseudorandom numbers drawn from a raised cosine distribution with parameters `mu` (mean) and `s` (scale parameter).
149
+ * Returns an array containing pseudorandom numbers drawn from a binomial distribution.
150
+ *
151
+ * @param len - array length
152
+ * @param n - number of trials
153
+ * @param p - success probability
154
+ * @param options - function options
155
+ * @returns output array
156
+ *
157
+ * @example
158
+ * var out = ns.binomial( 10, 17, 0.5 );
159
+ * // returns <Float64Array>
160
+ *
161
+ * @example
162
+ * var random = ns.binomial.factory( 17, 0.5 );
163
+ *
164
+ * var out = random( 10 );
165
+ * // returns <Float64Array>
166
+ */
167
+ binomial: typeof binomial;
168
+
169
+ /**
170
+ * Returns an array containing pseudorandom numbers drawn from a Cauchy distribution.
171
+ *
172
+ * @param len - array length
173
+ * @param x0 - location parameter
174
+ * @param gamma - scale parameter
175
+ * @param options - function options
176
+ * @returns output array
177
+ *
178
+ * @example
179
+ * var out = ns.cauchy( 10, 2.0, 5.0 );
180
+ * // returns <Float64Array>
181
+ *
182
+ * @example
183
+ * var random = ns.cauchy.factory( 2.0, 5.0 );
184
+ *
185
+ * var out = random( 10 );
186
+ * // returns <Float64Array>
187
+ */
188
+ cauchy: typeof cauchy;
189
+
190
+ /**
191
+ * Returns an array containing pseudorandom numbers drawn from a chi distribution.
192
+ *
193
+ * @param len - array length
194
+ * @param k - degrees of freedom
195
+ * @param options - function options
196
+ * @returns output array
197
+ *
198
+ * @example
199
+ * var out = ns.chi( 10, 2.0 );
200
+ * // returns <Float64Array>
201
+ *
202
+ * @example
203
+ * var random = ns.chi.factory( 2.0 );
204
+ *
205
+ * var out = random( 10 );
206
+ * // returns <Float64Array>
207
+ */
208
+ chi: typeof chi;
209
+
210
+ /**
211
+ * Returns an array containing pseudorandom numbers drawn from a chi-square distribution.
212
+ *
213
+ * @param len - array length
214
+ * @param k - degrees of freedom
215
+ * @param options - function options
216
+ * @returns output array
217
+ *
218
+ * @example
219
+ * var out = ns.chisquare( 10, 2.0 );
220
+ * // returns <Float64Array>
221
+ *
222
+ * @example
223
+ * var random = ns.chisquare.factory( 2.0 );
224
+ *
225
+ * var out = random( 10 );
226
+ * // returns <Float64Array>
227
+ */
228
+ chisquare: typeof chisquare;
229
+
230
+ /**
231
+ * Returns an array containing pseudorandom numbers drawn from a raised cosine distribution.
109
232
  *
110
233
  * @param len - array length
111
234
  * @param mu - mean
@@ -126,7 +249,7 @@ interface Namespace {
126
249
  cosine: typeof cosine;
127
250
 
128
251
  /**
129
- * Returns an array containing pseudorandom numbers drawn from a discrete uniform distribution with minimum support `a` and maximum support `b`.
252
+ * Returns an array containing pseudorandom numbers drawn from a discrete uniform distribution.
130
253
  *
131
254
  * @param len - array length
132
255
  * @param a - minimum support
@@ -147,7 +270,28 @@ interface Namespace {
147
270
  discreteUniform: typeof discreteUniform;
148
271
 
149
272
  /**
150
- * Returns an array containing pseudorandom numbers drawn from an exponential distribution with rate parameter `lambda`.
273
+ * Returns an array containing pseudorandom numbers drawn from an Erlang distribution.
274
+ *
275
+ * @param len - array length
276
+ * @param k - shape parameter
277
+ * @param lambda - rate parameter
278
+ * @param options - function options
279
+ * @returns output array
280
+ *
281
+ * @example
282
+ * var out = ns.erlang( 10, 2, 5.0 );
283
+ * // returns <Float64Array>
284
+ *
285
+ * @example
286
+ * var random = ns.erlang.factory( 2, 5.0 );
287
+ *
288
+ * var out = random( 10 );
289
+ * // returns <Float64Array>
290
+ */
291
+ erlang: typeof erlang;
292
+
293
+ /**
294
+ * Returns an array containing pseudorandom numbers drawn from an exponential distribution.
151
295
  *
152
296
  * @param len - array length
153
297
  * @param lambda - rate parameter
@@ -167,7 +311,50 @@ interface Namespace {
167
311
  exponential: typeof exponential;
168
312
 
169
313
  /**
170
- * Returns an array containing pseudorandom numbers drawn from a gamma distribution with parameters `alpha` (shape parameter) and `beta` (rate parameter).
314
+ * Returns an array containing pseudorandom numbers drawn from an F distribution.
315
+ *
316
+ * @param len - array length
317
+ * @param d1 - degrees of freedom
318
+ * @param d2 - degrees of freedom
319
+ * @param options - function options
320
+ * @returns output array
321
+ *
322
+ * @example
323
+ * var out = ns.f( 10, 2.0, 5.0 );
324
+ * // returns <Float64Array>
325
+ *
326
+ * @example
327
+ * var random = ns.f.ns.factory( 2.0, 5.0 );
328
+ *
329
+ * var out = random( 10 );
330
+ * // returns <Float64Array>
331
+ */
332
+ f: typeof f;
333
+
334
+ /**
335
+ * Returns an array containing pseudorandom numbers drawn from a Fréchet distribution.
336
+ *
337
+ * @param len - array length
338
+ * @param alpha - shape parameter
339
+ * @param s - scale parameter
340
+ * @param m - location parameter
341
+ * @param options - function options
342
+ * @returns output array
343
+ *
344
+ * @example
345
+ * var out = ns.frechet( 10, 2.0, 5.0, 3.0 );
346
+ * // returns <Float64Array>
347
+ *
348
+ * @example
349
+ * var random = ns.frechet.factory( 2.0, 5.0, 3.0 );
350
+ *
351
+ * var out = random( 10 );
352
+ * // returns <Float64Array>
353
+ */
354
+ frechet: typeof frechet;
355
+
356
+ /**
357
+ * Returns an array containing pseudorandom numbers drawn from a gamma distribution.
171
358
  *
172
359
  * @param len - array length
173
360
  * @param alpha - shape parameter
@@ -188,7 +375,70 @@ interface Namespace {
188
375
  gamma: typeof gamma;
189
376
 
190
377
  /**
191
- * Returns an array containing pseudorandom numbers drawn from an inverse gamma distribution with parameters `alpha` (shape parameter) and `beta` (scale parameter).
378
+ * Returns an array containing pseudorandom numbers drawn from a geometric distribution.
379
+ *
380
+ * @param len - array length
381
+ * @param p - success probability
382
+ * @param options - function options
383
+ * @returns output array
384
+ *
385
+ * @example
386
+ * var out = ns.geometric( 10, 0.01 );
387
+ * // returns <Float64Array>
388
+ *
389
+ * @example
390
+ * var random = ns.geometric.factory( 0.01 );
391
+ *
392
+ * var out = random( 10 );
393
+ * // returns <Float64Array>
394
+ */
395
+ geometric: typeof geometric;
396
+
397
+ /**
398
+ * Returns an array containing pseudorandom numbers drawn from a Gumbel distribution.
399
+ *
400
+ * @param len - array length
401
+ * @param mu - mean
402
+ * @param beta - scale parameter
403
+ * @param options - function options
404
+ * @returns output array
405
+ *
406
+ * @example
407
+ * var out = ns.gumbel( 10, 2.0, 5.0 );
408
+ * // returns <Float64Array>
409
+ *
410
+ * @example
411
+ * var random = ns.gumbel.factory( 2.0, 5.0 );
412
+ *
413
+ * var out = random( 10 );
414
+ * // returns <Float64Array>
415
+ */
416
+ gumbel: typeof gumbel;
417
+
418
+ /**
419
+ * Returns an array containing pseudorandom numbers drawn from a hypergeometric distribution.
420
+ *
421
+ * @param len - array length
422
+ * @param N - population size
423
+ * @param K - subpopulation size
424
+ * @param n - number of draws
425
+ * @param options - function options
426
+ * @returns output array
427
+ *
428
+ * @example
429
+ * var out = ns.hypergeometric( 10, 20, 10, 7 );
430
+ * // returns <Float64Array>
431
+ *
432
+ * @example
433
+ * var random = ns.hypergeometric.factory( 20, 10, 7 );
434
+ *
435
+ * var out = random( 10 );
436
+ * // returns <Float64Array>
437
+ */
438
+ hypergeometric: typeof hypergeometric;
439
+
440
+ /**
441
+ * Returns an array containing pseudorandom numbers drawn from an inverse gamma distribution.
192
442
  *
193
443
  * @param len - array length
194
444
  * @param alpha - shape parameter
@@ -209,7 +459,91 @@ interface Namespace {
209
459
  invgamma: typeof invgamma;
210
460
 
211
461
  /**
212
- * Returns an array containing pseudorandom numbers drawn from a lognormal distribution with parameters `mu` (location parameter) and `sigma` (scale parameter).
462
+ * Returns an array containing pseudorandom numbers drawn from Kumaraswamy's double bounded distribution.
463
+ *
464
+ * @param len - array length
465
+ * @param a - first shape parameter
466
+ * @param b - second shape parameter
467
+ * @param options - function options
468
+ * @returns output array
469
+ *
470
+ * @example
471
+ * var out = ns.kumaraswamy( 10, 2.0, 5.0 );
472
+ * // returns <Float64Array>
473
+ *
474
+ * @example
475
+ * var random = ns.kumaraswamy.factory( 2.0, 5.0 );
476
+ *
477
+ * var out = random( 10 );
478
+ * // returns <Float64Array>
479
+ */
480
+ kumaraswamy: typeof kumaraswamy;
481
+
482
+ /**
483
+ * Returns an array containing pseudorandom numbers drawn from a Laplace (double exponential) distribution.
484
+ *
485
+ * @param len - array length
486
+ * @param mu - mean
487
+ * @param b - scale parameter
488
+ * @param options - function options
489
+ * @returns output array
490
+ *
491
+ * @example
492
+ * var out = ns.laplace( 10, 2.0, 5.0 );
493
+ * // returns <Float64Array>
494
+ *
495
+ * @example
496
+ * var random = ns.laplace.factory( 2.0, 5.0 );
497
+ *
498
+ * var out = random( 10 );
499
+ * // returns <Float64Array>
500
+ */
501
+ laplace: typeof laplace;
502
+
503
+ /**
504
+ * Returns an array containing pseudorandom numbers drawn from a Lévy distribution.
505
+ *
506
+ * @param len - array length
507
+ * @param mu - location parameter
508
+ * @param c - scale parameter
509
+ * @param options - function options
510
+ * @returns output array
511
+ *
512
+ * @example
513
+ * var out = ns.levy( 10, 2.0, 5.0 );
514
+ * // returns <Float64Array>
515
+ *
516
+ * @example
517
+ * var random = ns.levy.factory( 2.0, 5.0 );
518
+ *
519
+ * var out = random( 10 );
520
+ * // returns <Float64Array>
521
+ */
522
+ levy: typeof levy;
523
+
524
+ /**
525
+ * Returns an array containing pseudorandom numbers drawn from a logistic distribution.
526
+ *
527
+ * @param len - array length
528
+ * @param mu - mean parameter
529
+ * @param s - scale parameter
530
+ * @param options - function options
531
+ * @returns output array
532
+ *
533
+ * @example
534
+ * var out = ns.logistic( 10, 2.0, 5.0 );
535
+ * // returns <Float64Array>
536
+ *
537
+ * @example
538
+ * var random = ns.logistic.factory( 2.0, 5.0 );
539
+ *
540
+ * var out = random( 10 );
541
+ * // returns <Float64Array>
542
+ */
543
+ logistic: typeof logistic;
544
+
545
+ /**
546
+ * Returns an array containing pseudorandom numbers drawn from a lognormal distribution.
213
547
  *
214
548
  * @param len - array length
215
549
  * @param mu - location parameter
@@ -299,7 +633,28 @@ interface Namespace {
299
633
  mt19937: typeof mt19937;
300
634
 
301
635
  /**
302
- * Returns an array containing pseudorandom numbers drawn from a normal distribution with parameters `mu` (mean) and `sigma` (standard deviation).
636
+ * Returns an array containing pseudorandom numbers drawn from a negative binomial distribution.
637
+ *
638
+ * @param len - array length
639
+ * @param r - number of successes until experiment is stopped
640
+ * @param p - success probability
641
+ * @param options - function options
642
+ * @returns output array
643
+ *
644
+ * @example
645
+ * var out = ns.negativeBinomial( 10, 10, 0.5 );
646
+ * // returns <Float64Array>
647
+ *
648
+ * @example
649
+ * var random = ns.negativeBinomial.factory( 10, 0.5 );
650
+ *
651
+ * var out = random( 10 );
652
+ * // returns <Float64Array>
653
+ */
654
+ negativeBinomial: typeof negativeBinomial;
655
+
656
+ /**
657
+ * Returns an array containing pseudorandom numbers drawn from a normal distribution.
303
658
  *
304
659
  * @param len - array length
305
660
  * @param mu - mean
@@ -319,6 +674,47 @@ interface Namespace {
319
674
  */
320
675
  normal: typeof normal;
321
676
 
677
+ /**
678
+ * Returns an array containing pseudorandom numbers drawn from a Pareto (Type I) distribution.
679
+ *
680
+ * @param len - array length
681
+ * @param alpha - shape parameter
682
+ * @param beta - scale parameter
683
+ * @param options - function options
684
+ * @returns output array
685
+ *
686
+ * @example
687
+ * var out = ns.pareto1( 10, 2.0, 5.0 );
688
+ * // returns <Float64Array>
689
+ *
690
+ * @example
691
+ * var random = ns.pareto1.factory( 2.0, 5.0 );
692
+ *
693
+ * var out = random( 10 );
694
+ * // returns <Float64Array>
695
+ */
696
+ pareto1: typeof pareto1;
697
+
698
+ /**
699
+ * Returns an array containing pseudorandom numbers drawn from a Poisson distribution.
700
+ *
701
+ * @param len - array length
702
+ * @param lambda - mean parameter
703
+ * @param options - function options
704
+ * @returns output array
705
+ *
706
+ * @example
707
+ * var out = ns.poisson( 10, 2.0 );
708
+ * // returns <Float64Array>
709
+ *
710
+ * @example
711
+ * var random = ns.poisson.factory( 2.0 );
712
+ *
713
+ * var out = random( 10 );
714
+ * // returns <Float64Array>
715
+ */
716
+ poisson: typeof poisson;
717
+
322
718
  /**
323
719
  * Returns an array containing uniformly distributed pseudorandom numbers between `0` and `1`.
324
720
  *
@@ -339,7 +735,69 @@ interface Namespace {
339
735
  randu: typeof randu;
340
736
 
341
737
  /**
342
- * Returns an array containing pseudorandom numbers drawn from a continuous uniform distribution with minimum support `a` and maximum support `b`.
738
+ * Returns an array containing pseudorandom numbers drawn from a Rayleigh distribution.
739
+ *
740
+ * @param len - array length
741
+ * @param sigma - scale parameter
742
+ * @param options - function options
743
+ * @returns output array
744
+ *
745
+ * @example
746
+ * var out = ns.rayleigh( 10, 2.0 );
747
+ * // returns <Float64Array>
748
+ *
749
+ * @example
750
+ * var random = ns.rayleigh.factory( 2.0 );
751
+ *
752
+ * var out = random( 10 );
753
+ * // returns <Float64Array>
754
+ */
755
+ rayleigh: typeof rayleigh;
756
+
757
+ /**
758
+ * Returns an array containing pseudorandom numbers drawn from a Student's t-distribution.
759
+ *
760
+ * @param len - array length
761
+ * @param v - degrees of freedom
762
+ * @param options - function options
763
+ * @returns output array
764
+ *
765
+ * @example
766
+ * var out = ns.t( 10, 2.0 );
767
+ * // returns <Float64Array>
768
+ *
769
+ * @example
770
+ * var random = ns.t.factory( 2.0 );
771
+ *
772
+ * var out = random( 10 );
773
+ * // returns <Float64Array>
774
+ */
775
+ t: typeof t;
776
+
777
+ /**
778
+ * Returns an array containing pseudorandom numbers drawn from a triangular distribution.
779
+ *
780
+ * @param len - array length
781
+ * @param a - minimum support
782
+ * @param b - maximum support
783
+ * @param c - mode
784
+ * @param options - function options
785
+ * @returns output array
786
+ *
787
+ * @example
788
+ * var out = ns.triangular( 10, 2.0, 5.0, 3.0 );
789
+ * // returns <Float64Array>
790
+ *
791
+ * @example
792
+ * var random = ns.triangular.factory( 2.0, 5.0, 3.0 );
793
+ *
794
+ * var out = random( 10 );
795
+ * // returns <Float64Array>
796
+ */
797
+ triangular: typeof triangular;
798
+
799
+ /**
800
+ * Returns an array containing pseudorandom numbers drawn from a continuous uniform distribution.
343
801
  *
344
802
  * @param len - array length
345
803
  * @param a - minimum support
@@ -358,6 +816,27 @@ interface Namespace {
358
816
  * // returns <Float64Array>
359
817
  */
360
818
  uniform: typeof uniform;
819
+
820
+ /**
821
+ * Returns an array containing pseudorandom numbers drawn from a Weibull distribution.
822
+ *
823
+ * @param len - array length
824
+ * @param k - scale parameter
825
+ * @param lambda - shape parameter
826
+ * @param options - function options
827
+ * @returns output array
828
+ *
829
+ * @example
830
+ * var out = ns.weibull( 10, 2.0, 5.0 );
831
+ * // returns <Float64Array>
832
+ *
833
+ * @example
834
+ * var random = ns.weibull.factory( 2.0, 5.0 );
835
+ *
836
+ * var out = random( 10 );
837
+ * // returns <Float64Array>
838
+ */
839
+ weibull: typeof weibull;
361
840
  }
362
841
 
363
842
  /**
package/lib/index.js CHANGED
@@ -45,6 +45,15 @@ var ns = {};
45
45
  */
46
46
  setReadOnly( ns, 'arcsine', require( '@stdlib/random-array-arcsine' ) );
47
47
 
48
+ /**
49
+ * @name bernoulli
50
+ * @memberof ns
51
+ * @readonly
52
+ * @type {Function}
53
+ * @see {@link module:@stdlib/random/array/bernoulli}
54
+ */
55
+ setReadOnly( ns, 'bernoulli', require( '@stdlib/random-array-bernoulli' ) );
56
+
48
57
  /**
49
58
  * @name beta
50
59
  * @memberof ns
@@ -63,6 +72,42 @@ setReadOnly( ns, 'beta', require( '@stdlib/random-array-beta' ) );
63
72
  */
64
73
  setReadOnly( ns, 'betaprime', require( '@stdlib/random-array-betaprime' ) );
65
74
 
75
+ /**
76
+ * @name binomial
77
+ * @memberof ns
78
+ * @readonly
79
+ * @type {Function}
80
+ * @see {@link module:@stdlib/random/array/binomial}
81
+ */
82
+ setReadOnly( ns, 'binomial', require( '@stdlib/random-array-binomial' ) );
83
+
84
+ /**
85
+ * @name cauchy
86
+ * @memberof ns
87
+ * @readonly
88
+ * @type {Function}
89
+ * @see {@link module:@stdlib/random/array/cauchy}
90
+ */
91
+ setReadOnly( ns, 'cauchy', require( '@stdlib/random-array-cauchy' ) );
92
+
93
+ /**
94
+ * @name chi
95
+ * @memberof ns
96
+ * @readonly
97
+ * @type {Function}
98
+ * @see {@link module:@stdlib/random/array/chi}
99
+ */
100
+ setReadOnly( ns, 'chi', require( '@stdlib/random-array-chi' ) );
101
+
102
+ /**
103
+ * @name chisquare
104
+ * @memberof ns
105
+ * @readonly
106
+ * @type {Function}
107
+ * @see {@link module:@stdlib/random/array/chisquare}
108
+ */
109
+ setReadOnly( ns, 'chisquare', require( '@stdlib/random-array-chisquare' ) );
110
+
66
111
  /**
67
112
  * @name cosine
68
113
  * @memberof ns
@@ -81,6 +126,15 @@ setReadOnly( ns, 'cosine', require( '@stdlib/random-array-cosine' ) );
81
126
  */
82
127
  setReadOnly( ns, 'discreteUniform', require( '@stdlib/random-array-discrete-uniform' ) );
83
128
 
129
+ /**
130
+ * @name erlang
131
+ * @memberof ns
132
+ * @readonly
133
+ * @type {Function}
134
+ * @see {@link module:@stdlib/random/array/erlang}
135
+ */
136
+ setReadOnly( ns, 'erlang', require( '@stdlib/random-array-erlang' ) );
137
+
84
138
  /**
85
139
  * @name exponential
86
140
  * @memberof ns
@@ -90,6 +144,24 @@ setReadOnly( ns, 'discreteUniform', require( '@stdlib/random-array-discrete-unif
90
144
  */
91
145
  setReadOnly( ns, 'exponential', require( '@stdlib/random-array-exponential' ) );
92
146
 
147
+ /**
148
+ * @name f
149
+ * @memberof ns
150
+ * @readonly
151
+ * @type {Function}
152
+ * @see {@link module:@stdlib/random/array/f}
153
+ */
154
+ setReadOnly( ns, 'f', require( '@stdlib/random-array-f' ) );
155
+
156
+ /**
157
+ * @name frechet
158
+ * @memberof ns
159
+ * @readonly
160
+ * @type {Function}
161
+ * @see {@link module:@stdlib/random/array/frechet}
162
+ */
163
+ setReadOnly( ns, 'frechet', require( '@stdlib/random-array-frechet' ) );
164
+
93
165
  /**
94
166
  * @name gamma
95
167
  * @memberof ns
@@ -99,6 +171,33 @@ setReadOnly( ns, 'exponential', require( '@stdlib/random-array-exponential' ) );
99
171
  */
100
172
  setReadOnly( ns, 'gamma', require( '@stdlib/random-array-gamma' ) );
101
173
 
174
+ /**
175
+ * @name geometric
176
+ * @memberof ns
177
+ * @readonly
178
+ * @type {Function}
179
+ * @see {@link module:@stdlib/random/array/geometric}
180
+ */
181
+ setReadOnly( ns, 'geometric', require( '@stdlib/random-array-geometric' ) );
182
+
183
+ /**
184
+ * @name gumbel
185
+ * @memberof ns
186
+ * @readonly
187
+ * @type {Function}
188
+ * @see {@link module:@stdlib/random/array/gumbel}
189
+ */
190
+ setReadOnly( ns, 'gumbel', require( '@stdlib/random-array-gumbel' ) );
191
+
192
+ /**
193
+ * @name hypergeometric
194
+ * @memberof ns
195
+ * @readonly
196
+ * @type {Function}
197
+ * @see {@link module:@stdlib/random/array/hypergeometric}
198
+ */
199
+ setReadOnly( ns, 'hypergeometric', require( '@stdlib/random-array-hypergeometric' ) );
200
+
102
201
  /**
103
202
  * @name invgamma
104
203
  * @memberof ns
@@ -108,6 +207,42 @@ setReadOnly( ns, 'gamma', require( '@stdlib/random-array-gamma' ) );
108
207
  */
109
208
  setReadOnly( ns, 'invgamma', require( '@stdlib/random-array-invgamma' ) );
110
209
 
210
+ /**
211
+ * @name kumaraswamy
212
+ * @memberof ns
213
+ * @readonly
214
+ * @type {Function}
215
+ * @see {@link module:@stdlib/random/array/kumaraswamy}
216
+ */
217
+ setReadOnly( ns, 'kumaraswamy', require( '@stdlib/random-array-kumaraswamy' ) );
218
+
219
+ /**
220
+ * @name laplace
221
+ * @memberof ns
222
+ * @readonly
223
+ * @type {Function}
224
+ * @see {@link module:@stdlib/random/array/laplace}
225
+ */
226
+ setReadOnly( ns, 'laplace', require( '@stdlib/random-array-laplace' ) );
227
+
228
+ /**
229
+ * @name levy
230
+ * @memberof ns
231
+ * @readonly
232
+ * @type {Function}
233
+ * @see {@link module:@stdlib/random/array/levy}
234
+ */
235
+ setReadOnly( ns, 'levy', require( '@stdlib/random-array-levy' ) );
236
+
237
+ /**
238
+ * @name logistic
239
+ * @memberof ns
240
+ * @readonly
241
+ * @type {Function}
242
+ * @see {@link module:@stdlib/random/array/logistic}
243
+ */
244
+ setReadOnly( ns, 'logistic', require( '@stdlib/random-array-logistic' ) );
245
+
111
246
  /**
112
247
  * @name lognormal
113
248
  * @memberof ns
@@ -144,6 +279,15 @@ setReadOnly( ns, 'minstdShuffle', require( '@stdlib/random-array-minstd-shuffle'
144
279
  */
145
280
  setReadOnly( ns, 'mt19937', require( '@stdlib/random-array-mt19937' ) );
146
281
 
282
+ /**
283
+ * @name negativeBinomial
284
+ * @memberof ns
285
+ * @readonly
286
+ * @type {Function}
287
+ * @see {@link module:@stdlib/random/array/negative-binomial}
288
+ */
289
+ setReadOnly( ns, 'negativeBinomial', require( '@stdlib/random-array-negative-binomial' ) );
290
+
147
291
  /**
148
292
  * @name normal
149
293
  * @memberof ns
@@ -153,6 +297,24 @@ setReadOnly( ns, 'mt19937', require( '@stdlib/random-array-mt19937' ) );
153
297
  */
154
298
  setReadOnly( ns, 'normal', require( '@stdlib/random-array-normal' ) );
155
299
 
300
+ /**
301
+ * @name pareto1
302
+ * @memberof ns
303
+ * @readonly
304
+ * @type {Function}
305
+ * @see {@link module:@stdlib/random/array/pareto-type1}
306
+ */
307
+ setReadOnly( ns, 'pareto1', require( '@stdlib/random-array-pareto-type1' ) );
308
+
309
+ /**
310
+ * @name poisson
311
+ * @memberof ns
312
+ * @readonly
313
+ * @type {Function}
314
+ * @see {@link module:@stdlib/random/array/poisson}
315
+ */
316
+ setReadOnly( ns, 'poisson', require( '@stdlib/random-array-poisson' ) );
317
+
156
318
  /**
157
319
  * @name randu
158
320
  * @memberof ns
@@ -162,6 +324,33 @@ setReadOnly( ns, 'normal', require( '@stdlib/random-array-normal' ) );
162
324
  */
163
325
  setReadOnly( ns, 'randu', require( '@stdlib/random-array-randu' ) );
164
326
 
327
+ /**
328
+ * @name rayleigh
329
+ * @memberof ns
330
+ * @readonly
331
+ * @type {Function}
332
+ * @see {@link module:@stdlib/random/array/rayleigh}
333
+ */
334
+ setReadOnly( ns, 'rayleigh', require( '@stdlib/random-array-rayleigh' ) );
335
+
336
+ /**
337
+ * @name t
338
+ * @memberof ns
339
+ * @readonly
340
+ * @type {Function}
341
+ * @see {@link module:@stdlib/random/array/t}
342
+ */
343
+ setReadOnly( ns, 't', require( '@stdlib/random-array-t' ) );
344
+
345
+ /**
346
+ * @name triangular
347
+ * @memberof ns
348
+ * @readonly
349
+ * @type {Function}
350
+ * @see {@link module:@stdlib/random/array/triangular}
351
+ */
352
+ setReadOnly( ns, 'triangular', require( '@stdlib/random-array-triangular' ) );
353
+
165
354
  /**
166
355
  * @name uniform
167
356
  * @memberof ns
@@ -171,6 +360,15 @@ setReadOnly( ns, 'randu', require( '@stdlib/random-array-randu' ) );
171
360
  */
172
361
  setReadOnly( ns, 'uniform', require( '@stdlib/random-array-uniform' ) );
173
362
 
363
+ /**
364
+ * @name weibull
365
+ * @memberof ns
366
+ * @readonly
367
+ * @type {Function}
368
+ * @see {@link module:@stdlib/random/array/weibull}
369
+ */
370
+ setReadOnly( ns, 'weibull', require( '@stdlib/random-array-weibull' ) );
371
+
174
372
 
175
373
  // EXPORTS //
176
374
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/random-array",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Pseudorandom number generator array creation functions.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -16,17 +16,11 @@
16
16
  "main": "./lib",
17
17
  "directories": {
18
18
  "doc": "./docs",
19
- "example": "./examples",
20
19
  "lib": "./lib",
21
- "test": "./test"
20
+ "dist": "./dist"
22
21
  },
23
22
  "types": "./docs/types",
24
- "scripts": {
25
- "test": "make test",
26
- "test-cov": "make test-cov",
27
- "examples": "make examples",
28
- "benchmark": "make benchmark"
29
- },
23
+ "scripts": {},
30
24
  "homepage": "https://stdlib.io",
31
25
  "repository": {
32
26
  "type": "git",
@@ -36,76 +30,46 @@
36
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
37
31
  },
38
32
  "dependencies": {
39
- "@stdlib/random-array-arcsine": "^0.1.0",
40
- "@stdlib/random-array-beta": "^0.0.1",
41
- "@stdlib/random-array-betaprime": "^0.1.0",
42
- "@stdlib/random-array-cosine": "^0.1.0",
43
- "@stdlib/random-array-discrete-uniform": "^0.1.0",
44
- "@stdlib/random-array-exponential": "^0.1.0",
45
- "@stdlib/random-array-gamma": "^0.1.0",
46
- "@stdlib/random-array-invgamma": "^0.1.0",
47
- "@stdlib/random-array-lognormal": "^0.1.0",
48
- "@stdlib/random-array-minstd": "^0.1.0",
49
- "@stdlib/random-array-minstd-shuffle": "^0.1.0",
50
- "@stdlib/random-array-mt19937": "^0.1.0",
51
- "@stdlib/random-array-normal": "^0.1.0",
52
- "@stdlib/random-array-randu": "^0.1.0",
53
- "@stdlib/random-array-uniform": "^0.1.0",
54
- "@stdlib/utils-define-read-only-property": "^0.1.0"
55
- },
56
- "devDependencies": {
57
- "@stdlib/array-base-filled-by": "^0.1.0",
58
- "@stdlib/array-float32": "^0.1.0",
59
- "@stdlib/array-float64": "^0.1.0",
60
- "@stdlib/array-int32": "^0.1.0",
61
- "@stdlib/array-typed-real-ctors": "^0.1.0",
62
- "@stdlib/array-typed-real-dtypes": "^0.1.0",
63
- "@stdlib/array-typed-real-float-ctors": "^0.1.0",
64
- "@stdlib/array-typed-real-float-dtypes": "^0.1.0",
65
- "@stdlib/array-uint32": "^0.1.0",
66
- "@stdlib/assert-has-own-property": "^0.1.0",
67
- "@stdlib/assert-is-int32array": "^0.1.0",
68
- "@stdlib/assert-is-nonnegative-integer": "^0.1.0",
69
- "@stdlib/assert-is-number": "^0.1.0",
70
- "@stdlib/assert-is-plain-object": "^0.1.0",
71
- "@stdlib/assert-is-uint32array": "^0.1.0",
72
- "@stdlib/bench": "^0.1.0",
73
- "@stdlib/console-log-each": "^0.1.0",
74
- "@stdlib/constants-int32-max": "^0.1.0",
75
- "@stdlib/constants-uint32-max": "^0.1.0",
76
- "@stdlib/math-base-assert-is-nan": "^0.1.0",
77
- "@stdlib/math-base-assert-is-nanf": "^0.1.0",
78
- "@stdlib/math-base-special-pow": "^0.1.0",
79
- "@stdlib/random-base-arcsine": "^0.1.0",
80
- "@stdlib/random-base-beta": "^0.1.0",
81
- "@stdlib/random-base-betaprime": "^0.1.0",
82
- "@stdlib/random-base-cosine": "^0.1.0",
83
- "@stdlib/random-base-discrete-uniform": "^0.1.0",
84
- "@stdlib/random-base-exponential": "^0.1.0",
85
- "@stdlib/random-base-gamma": "^0.1.0",
86
- "@stdlib/random-base-geometric": "^0.1.0",
87
- "@stdlib/random-base-invgamma": "^0.1.0",
88
- "@stdlib/random-base-lognormal": "^0.1.0",
89
- "@stdlib/random-base-minstd": "^0.1.0",
90
- "@stdlib/random-base-minstd-shuffle": "^0.1.0",
91
- "@stdlib/random-base-mt19937": "^0.1.0",
92
- "@stdlib/random-base-normal": "^0.1.0",
93
- "@stdlib/random-base-randu": "^0.1.0",
94
- "@stdlib/random-base-uniform": "^0.1.0",
95
- "@stdlib/strided-base-binary": "^0.1.0",
96
- "@stdlib/strided-base-nullary": "^0.1.0",
97
- "@stdlib/strided-base-unary": "^0.1.0",
98
- "@stdlib/string-format": "^0.1.0",
99
- "@stdlib/utils-constant-function": "^0.1.0",
100
- "@stdlib/utils-define-nonenumerable-read-only-accessor": "^0.1.0",
101
- "@stdlib/utils-define-nonenumerable-read-only-property": "^0.1.0",
102
- "@stdlib/utils-define-nonenumerable-read-write-accessor": "^0.1.0",
103
- "@stdlib/utils-keys": "^0.1.0",
104
- "@stdlib/utils-noop": "^0.1.0",
105
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
106
- "istanbul": "^0.4.1",
107
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
33
+ "@stdlib/random-array-arcsine": "^0.2.1",
34
+ "@stdlib/random-array-bernoulli": "^0.2.1",
35
+ "@stdlib/random-array-beta": "^0.2.1",
36
+ "@stdlib/random-array-betaprime": "^0.2.1",
37
+ "@stdlib/random-array-binomial": "^0.2.1",
38
+ "@stdlib/random-array-cauchy": "^0.2.1",
39
+ "@stdlib/random-array-chi": "^0.2.1",
40
+ "@stdlib/random-array-chisquare": "^0.2.1",
41
+ "@stdlib/random-array-cosine": "^0.2.1",
42
+ "@stdlib/random-array-discrete-uniform": "^0.2.1",
43
+ "@stdlib/random-array-erlang": "^0.2.1",
44
+ "@stdlib/random-array-exponential": "^0.2.1",
45
+ "@stdlib/random-array-f": "^0.2.1",
46
+ "@stdlib/random-array-frechet": "^0.2.1",
47
+ "@stdlib/random-array-gamma": "^0.2.1",
48
+ "@stdlib/random-array-geometric": "^0.2.1",
49
+ "@stdlib/random-array-gumbel": "^0.2.1",
50
+ "@stdlib/random-array-hypergeometric": "^0.2.1",
51
+ "@stdlib/random-array-invgamma": "^0.2.1",
52
+ "@stdlib/random-array-kumaraswamy": "^0.2.1",
53
+ "@stdlib/random-array-laplace": "^0.2.1",
54
+ "@stdlib/random-array-levy": "^0.2.1",
55
+ "@stdlib/random-array-logistic": "^0.2.1",
56
+ "@stdlib/random-array-lognormal": "^0.2.1",
57
+ "@stdlib/random-array-minstd": "^0.2.1",
58
+ "@stdlib/random-array-minstd-shuffle": "^0.2.1",
59
+ "@stdlib/random-array-mt19937": "^0.2.1",
60
+ "@stdlib/random-array-negative-binomial": "^0.2.1",
61
+ "@stdlib/random-array-normal": "^0.2.1",
62
+ "@stdlib/random-array-pareto-type1": "^0.2.1",
63
+ "@stdlib/random-array-poisson": "^0.2.1",
64
+ "@stdlib/random-array-randu": "^0.2.1",
65
+ "@stdlib/random-array-rayleigh": "^0.2.1",
66
+ "@stdlib/random-array-t": "^0.2.1",
67
+ "@stdlib/random-array-triangular": "^0.2.1",
68
+ "@stdlib/random-array-uniform": "^0.2.1",
69
+ "@stdlib/random-array-weibull": "^0.2.1",
70
+ "@stdlib/utils-define-read-only-property": "^0.2.1"
108
71
  },
72
+ "devDependencies": {},
109
73
  "engines": {
110
74
  "node": ">=0.10.0",
111
75
  "npm": ">2.7.0"
package/CITATION.cff DELETED
@@ -1,30 +0,0 @@
1
- cff-version: 1.2.0
2
- title: stdlib
3
- message: >-
4
- If you use this software, please cite it using the
5
- metadata from this file.
6
-
7
- type: software
8
-
9
- authors:
10
- - name: The Stdlib Authors
11
- url: https://github.com/stdlib-js/stdlib/graphs/contributors
12
-
13
- repository-code: https://github.com/stdlib-js/stdlib
14
- url: https://stdlib.io
15
-
16
- abstract: |
17
- Standard library for JavaScript and Node.js.
18
-
19
- keywords:
20
- - JavaScript
21
- - Node.js
22
- - TypeScript
23
- - standard library
24
- - scientific computing
25
- - numerical computing
26
- - statistical computing
27
-
28
- license: Apache-2.0 AND BSL-1.0
29
-
30
- date-released: 2016