Skip to content

Commit b92d0bb

Browse files
committed
feat: add random.array.negativeBinomial to namespace
1 parent 7e702f6 commit b92d0bb

File tree

27 files changed

+82
-15
lines changed

27 files changed

+82
-15
lines changed

lib/node_modules/@stdlib/namespace/alias2pkg/data/data.csv

+1
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,7 @@ random.array.lognormal,"@stdlib/random/array/lognormal"
24452445
random.array.minstd,"@stdlib/random/array/minstd"
24462446
random.array.minstdShuffle,"@stdlib/random/array/minstd-shuffle"
24472447
random.array.mt19937,"@stdlib/random/array/mt19937"
2448+
random.array.negativeBinomial,"@stdlib/random/array/negative-binomial"
24482449
random.array.normal,"@stdlib/random/array/normal"
24492450
random.array.pareto1,"@stdlib/random/array/pareto-type1"
24502451
random.array.poisson,"@stdlib/random/array/poisson"

lib/node_modules/@stdlib/namespace/alias2pkg/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/namespace/alias2related/data/data.csv

+2-1
Original file line numberDiff line numberDiff line change
@@ -2424,7 +2424,7 @@ random.array.arcsine,"base.random.arcsine,random.strided.arcsine"
24242424
random.array.bernoulli,"base.random.bernoulli"
24252425
random.array.beta,"base.random.beta,random.strided.beta"
24262426
random.array.betaprime,"base.random.betaprime,random.strided.betaprime"
2427-
random.array.binomial,"base.random.binomial"
2427+
random.array.binomial,"random.array.negativeBinomial,base.random.binomial"
24282428
random.array.cauchy,"base.random.cauchy"
24292429
random.array.chi,"base.random.chi"
24302430
random.array.chisquare,"base.random.chisquare"
@@ -2445,6 +2445,7 @@ random.array.lognormal,"base.random.lognormal,random.strided.lognormal"
24452445
random.array.minstd,"random.array.minstdShuffle,random.array.randu,base.random.minstd,random.strided.minstd"
24462446
random.array.minstdShuffle,"random.array.minstd,random.array.randu,base.random.minstdShuffle,random.strided.minstdShuffle"
24472447
random.array.mt19937,"random.array.randu,base.random.mt19937,random.strided.mt19937"
2448+
random.array.negativeBinomial,"random.array.binomial,base.random.negativeBinomial"
24482449
random.array.normal,"base.random.normal,random.strided.normal"
24492450
random.array.pareto1,"base.random.pareto1"
24502451
random.array.poisson,"base.random.poisson"

lib/node_modules/@stdlib/namespace/alias2related/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/namespace/alias2standalone/data/data.csv

+1
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,7 @@ random.array.lognormal,"@stdlib/random-array-lognormal"
24452445
random.array.minstd,"@stdlib/random-array-minstd"
24462446
random.array.minstdShuffle,"@stdlib/random-array-minstd-shuffle"
24472447
random.array.mt19937,"@stdlib/random-array-mt19937"
2448+
random.array.negativeBinomial,"@stdlib/random-array-negative-binomial"
24482449
random.array.normal,"@stdlib/random-array-normal"
24492450
random.array.pareto1,"@stdlib/random-array-pareto-type1"
24502451
random.array.poisson,"@stdlib/random-array-poisson"

lib/node_modules/@stdlib/namespace/alias2standalone/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/namespace/aliases/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/namespace/aliases/data/data.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,7 @@ random.array.lognormal
24452445
random.array.minstd
24462446
random.array.minstdShuffle
24472447
random.array.mt19937
2448+
random.array.negativeBinomial
24482449
random.array.normal
24492450
random.array.pareto1
24502451
random.array.poisson

lib/node_modules/@stdlib/namespace/lib/namespace/random/array/index.js

+14
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ ns.push({
8181
'type': 'Function',
8282
'related': [
8383
'@stdlib/random/binomial',
84+
'@stdlib/random/array/negative-binomial',
8485
'@stdlib/random/base/binomial',
8586
'@stdlib/random/strided/binomial'
8687
]
@@ -332,6 +333,19 @@ ns.push({
332333
]
333334
});
334335

336+
ns.push({
337+
'alias': 'random.array.negativeBinomial',
338+
'path': '@stdlib/random/array/negative-binomial',
339+
'value': require( '@stdlib/random/array/negative-binomial' ),
340+
'type': 'Function',
341+
'related': [
342+
'@stdlib/random/negative-binomial',
343+
'@stdlib/random/array/binomial',
344+
'@stdlib/random/base/negative-binomial',
345+
'@stdlib/random/strided/negative-binomial'
346+
]
347+
});
348+
335349
ns.push({
336350
'alias': 'random.array.normal',
337351
'path': '@stdlib/random/array/normal',

lib/node_modules/@stdlib/namespace/pkg2alias/data/data.csv

+1
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,7 @@
24452445
"@stdlib/random/array/minstd",random.array.minstd
24462446
"@stdlib/random/array/minstd-shuffle",random.array.minstdShuffle
24472447
"@stdlib/random/array/mt19937",random.array.mt19937
2448+
"@stdlib/random/array/negative-binomial",random.array.negativeBinomial
24482449
"@stdlib/random/array/normal",random.array.normal
24492450
"@stdlib/random/array/pareto-type1",random.array.pareto1
24502451
"@stdlib/random/array/poisson",random.array.poisson

lib/node_modules/@stdlib/namespace/pkg2alias/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/namespace/pkg2related/data/data.csv

+2-1
Original file line numberDiff line numberDiff line change
@@ -2424,7 +2424,7 @@
24242424
"@stdlib/random/array/bernoulli","@stdlib/random/base/bernoulli"
24252425
"@stdlib/random/array/beta","@stdlib/random/base/beta,@stdlib/random/strided/beta"
24262426
"@stdlib/random/array/betaprime","@stdlib/random/base/betaprime,@stdlib/random/strided/betaprime"
2427-
"@stdlib/random/array/binomial","@stdlib/random/base/binomial"
2427+
"@stdlib/random/array/binomial","@stdlib/random/array/negative-binomial,@stdlib/random/base/binomial"
24282428
"@stdlib/random/array/cauchy","@stdlib/random/base/cauchy"
24292429
"@stdlib/random/array/chi","@stdlib/random/base/chi"
24302430
"@stdlib/random/array/chisquare","@stdlib/random/base/chisquare"
@@ -2445,6 +2445,7 @@
24452445
"@stdlib/random/array/minstd","@stdlib/random/array/minstd-shuffle,@stdlib/random/array/randu,@stdlib/random/base/minstd,@stdlib/random/strided/minstd"
24462446
"@stdlib/random/array/minstd-shuffle","@stdlib/random/array/minstd,@stdlib/random/array/randu,@stdlib/random/base/minstd-shuffle,@stdlib/random/strided/minstd-shuffle"
24472447
"@stdlib/random/array/mt19937","@stdlib/random/array/randu,@stdlib/random/base/mt19937,@stdlib/random/strided/mt19937"
2448+
"@stdlib/random/array/negative-binomial","@stdlib/random/array/binomial,@stdlib/random/base/negative-binomial"
24482449
"@stdlib/random/array/normal","@stdlib/random/base/normal,@stdlib/random/strided/normal"
24492450
"@stdlib/random/array/pareto-type1","@stdlib/random/base/pareto-type1"
24502451
"@stdlib/random/array/poisson","@stdlib/random/base/poisson"

lib/node_modules/@stdlib/namespace/pkg2related/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/namespace/pkg2standalone/data/data.csv

+1
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,7 @@
24452445
"@stdlib/random/array/minstd","@stdlib/random-array-minstd"
24462446
"@stdlib/random/array/minstd-shuffle","@stdlib/random-array-minstd-shuffle"
24472447
"@stdlib/random/array/mt19937","@stdlib/random-array-mt19937"
2448+
"@stdlib/random/array/negative-binomial","@stdlib/random-array-negative-binomial"
24482449
"@stdlib/random/array/normal","@stdlib/random-array-normal"
24492450
"@stdlib/random/array/pareto-type1","@stdlib/random-array-pareto-type1"
24502451
"@stdlib/random/array/poisson","@stdlib/random-array-poisson"

lib/node_modules/@stdlib/namespace/pkg2standalone/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/namespace/standalone2pkg/data/data.csv

+1
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,7 @@
24452445
"@stdlib/random-array-minstd","@stdlib/random/array/minstd"
24462446
"@stdlib/random-array-minstd-shuffle","@stdlib/random/array/minstd-shuffle"
24472447
"@stdlib/random-array-mt19937","@stdlib/random/array/mt19937"
2448+
"@stdlib/random-array-negative-binomial","@stdlib/random/array/negative-binomial"
24482449
"@stdlib/random-array-normal","@stdlib/random/array/normal"
24492450
"@stdlib/random-array-pareto-type1","@stdlib/random/array/pareto-type1"
24502451
"@stdlib/random-array-poisson","@stdlib/random/array/poisson"

lib/node_modules/@stdlib/namespace/standalone2pkg/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/code-blocks/data/data.csv

+9
Original file line numberDiff line numberDiff line change
@@ -3884,6 +3884,15 @@ random.array.betaprime.seedLength,"var len = random.array.betaprime.seedLength;\
38843884
random.array.betaprime.state,"var out = random.array.betaprime( 3, 2.0, 5.0 )\nvar state = random.array.betaprime.state\nout = random.array.betaprime( 3, 2.0, 5.0 )\nout = random.array.betaprime( 3, 2.0, 5.0 )\nrandom.array.betaprime.state = state;\nout = random.array.betaprime( 3, 2.0, 5.0 )\n"
38853885
random.array.betaprime.stateLength,"var len = random.array.betaprime.stateLength;\n"
38863886
random.array.betaprime.byteLength,"var sz = random.array.betaprime.byteLength;\n"
3887+
random.array.binomial,"var out = random.array.binomial( 3, 17, 0.5 )\n"
3888+
random.array.binomial.assign,"var x = azeros( 3, 'float64' );\nvar out = random.array.binomial.assign( 17, 0.5, x )\nvar bool = ( out === x )\n"
3889+
random.array.binomial.factory,"var fcn = random.array.binomial.factory();\nvar out = fcn( 3, 17, 0.5 )\nfcn = random.array.binomial.factory( 17, 0.5 );\nout = fcn( 3 )\n"
3890+
random.array.binomial.PRNG,"var prng = random.array.binomial.PRNG;\n"
3891+
random.array.binomial.seed,"var seed = random.array.binomial.seed;\n"
3892+
random.array.binomial.seedLength,"var len = random.array.binomial.seedLength;\n"
3893+
random.array.binomial.state,"var out = random.array.binomial( 3, 17, 0.5 )\nvar state = random.array.binomial.state\nout = random.array.binomial( 3, 17, 0.5 )\nout = random.array.binomial( 3, 17, 0.5 )\nrandom.array.binomial.state = state;\nout = random.array.binomial( 3, 17, 0.5 )\n"
3894+
random.array.binomial.stateLength,"var len = random.array.binomial.stateLength;\n"
3895+
random.array.binomial.byteLength,"var sz = random.array.binomial.byteLength;\n"
38873896
random.array.cauchy,"var out = random.array.cauchy( 3, 2.0, 5.0 )\n"
38883897
random.array.cauchy.assign,"var x = azeros( 3, 'float64' );\nvar out = random.array.cauchy.assign( 2.0, 5.0, x )\nvar bool = ( out === x )\n"
38893898
random.array.cauchy.factory,"var fcn = random.array.cauchy.factory();\nvar out = fcn( 3, 2.0, 5.0 )\nfcn = random.array.cauchy.factory( 2.0, 5.0 );\nout = fcn( 3 )\n"

lib/node_modules/@stdlib/repl/code-blocks/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/help/data/data.csv

+9
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/help/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/info/data/data.csv

+9
Original file line numberDiff line numberDiff line change
@@ -3884,6 +3884,15 @@ random.array.betaprime.seedLength,"\nrandom.array.betaprime.seedLength\n Leng
38843884
random.array.betaprime.state,"\nrandom.array.betaprime.state\n Generator state.\n"
38853885
random.array.betaprime.stateLength,"\nrandom.array.betaprime.stateLength\n Length of generator state.\n"
38863886
random.array.betaprime.byteLength,"\nrandom.array.betaprime.byteLength\n Size (in bytes) of generator state.\n"
3887+
random.array.binomial,"\nrandom.array.binomial( len:integer, n:number, p:number[, options:Object] )\n Returns an array containing pseudorandom numbers drawn from a binomial\n distribution.\n"
3888+
random.array.binomial.assign,"\nrandom.array.binomial.assign( n:number, p:number, out:Array|TypedArray )\n Fills an array with pseudorandom numbers drawn from a binomial distribution.\n"
3889+
random.array.binomial.factory,"\nrandom.array.binomial.factory( [n:number, p:number, ][options:Object] )\n Returns a function for creating arrays containing pseudorandom numbers drawn\n from a binomial distribution.\n"
3890+
random.array.binomial.PRNG,"\nrandom.array.binomial.PRNG\n Underlying pseudorandom number generator.\n"
3891+
random.array.binomial.seed,"\nrandom.array.binomial.seed\n Pseudorandom number generator seed.\n"
3892+
random.array.binomial.seedLength,"\nrandom.array.binomial.seedLength\n Length of generator seed.\n"
3893+
random.array.binomial.state,"\nrandom.array.binomial.state\n Generator state.\n"
3894+
random.array.binomial.stateLength,"\nrandom.array.binomial.stateLength\n Length of generator state.\n"
3895+
random.array.binomial.byteLength,"\nrandom.array.binomial.byteLength\n Size (in bytes) of generator state.\n"
38873896
random.array.cauchy,"\nrandom.array.cauchy( len:integer, x0:number, gamma:number[, options:Object] )\n Returns an array containing pseudorandom numbers drawn from a Cauchy\n distribution.\n"
38883897
random.array.cauchy.assign,"\nrandom.array.cauchy.assign( x0:number, gamma:number, \n out:Array|Float64Array|Float32Array )\n Fills an array with pseudorandom numbers drawn from a Cauchy distribution.\n"
38893898
random.array.cauchy.factory,"\nrandom.array.cauchy.factory( [x0:number, gamma:number, ][options:Object] )\n Returns a function for creating arrays containing pseudorandom numbers drawn\n from a Cauchy distribution.\n"

lib/node_modules/@stdlib/repl/info/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/signature/data/data.csv

+9
Original file line numberDiff line numberDiff line change
@@ -3921,6 +3921,15 @@ random.array.betaprime.seedLength,"random.array.betaprime.seedLength"
39213921
random.array.betaprime.state,"random.array.betaprime.state"
39223922
random.array.betaprime.stateLength,"random.array.betaprime.stateLength"
39233923
random.array.betaprime.byteLength,"random.array.betaprime.byteLength"
3924+
random.array.binomial,"random.array.binomial( len, n, p[, options] )"
3925+
random.array.binomial.assign,"random.array.binomial.assign( n, p, out )"
3926+
random.array.binomial.factory,"random.array.binomial.factory( [n, p, ][options] )"
3927+
random.array.binomial.PRNG,"random.array.binomial.PRNG"
3928+
random.array.binomial.seed,"random.array.binomial.seed"
3929+
random.array.binomial.seedLength,"random.array.binomial.seedLength"
3930+
random.array.binomial.state,"random.array.binomial.state"
3931+
random.array.binomial.stateLength,"random.array.binomial.stateLength"
3932+
random.array.binomial.byteLength,"random.array.binomial.byteLength"
39243933
random.array.cauchy,"random.array.cauchy( len, x0, gamma[, options] )"
39253934
random.array.cauchy.assign,"random.array.cauchy.assign( x0, gamma, out )"
39263935
random.array.cauchy.factory,"random.array.cauchy.factory( [x0, gamma, ][options] )"

lib/node_modules/@stdlib/repl/signature/data/data.json

+1-1
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/typed-signature/data/data.csv

+9
Original file line numberDiff line numberDiff line change
@@ -3921,6 +3921,15 @@ random.array.betaprime.seedLength,"random.array.betaprime.seedLength"
39213921
random.array.betaprime.state,"random.array.betaprime.state"
39223922
random.array.betaprime.stateLength,"random.array.betaprime.stateLength"
39233923
random.array.betaprime.byteLength,"random.array.betaprime.byteLength"
3924+
random.array.binomial,"random.array.binomial( len:integer, n:number, p:number[, options:Object] )"
3925+
random.array.binomial.assign,"random.array.binomial.assign( n:number, p:number, out:Array|TypedArray )"
3926+
random.array.binomial.factory,"random.array.binomial.factory( [n:number, p:number, ][options:Object] )"
3927+
random.array.binomial.PRNG,"random.array.binomial.PRNG"
3928+
random.array.binomial.seed,"random.array.binomial.seed"
3929+
random.array.binomial.seedLength,"random.array.binomial.seedLength"
3930+
random.array.binomial.state,"random.array.binomial.state"
3931+
random.array.binomial.stateLength,"random.array.binomial.stateLength"
3932+
random.array.binomial.byteLength,"random.array.binomial.byteLength"
39243933
random.array.cauchy,"random.array.cauchy( len:integer, x0:number, gamma:number[, options:Object] )"
39253934
random.array.cauchy.assign,"random.array.cauchy.assign( x0:number, gamma:number, out:Array|Float64Array|Float32Array )"
39263935
random.array.cauchy.factory,"random.array.cauchy.factory( [x0:number, gamma:number, ][options:Object] )"

lib/node_modules/@stdlib/repl/typed-signature/data/data.json

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)