Skip to content

Commit 0cb1c96

Browse files
committed
feat: add random.array.bernoulli to namespace
1 parent f989e7d commit 0cb1c96

File tree

27 files changed

+55
-17
lines changed

27 files changed

+55
-17
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -2421,6 +2421,7 @@ Proxy,"@stdlib/proxy/ctor"
24212421
push,"@stdlib/utils/push"
24222422
quarterOfYear,"@stdlib/time/quarter-of-year"
24232423
random.array.arcsine,"@stdlib/random/array/arcsine"
2424+
random.array.bernoulli,"@stdlib/random/array/bernoulli"
24242425
random.array.beta,"@stdlib/random/array/beta"
24252426
random.array.betaprime,"@stdlib/random/array/betaprime"
24262427
random.array.cosine,"@stdlib/random/array/cosine"

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

+1
Original file line numberDiff line numberDiff line change
@@ -2421,6 +2421,7 @@ Proxy,""
24212421
push,"pop,shift,unshift"
24222422
quarterOfYear,"dayOfYear"
24232423
random.array.arcsine,"base.random.arcsine,random.strided.arcsine"
2424+
random.array.bernoulli,"base.random.bernoulli"
24242425
random.array.beta,"base.random.beta,random.strided.beta"
24252426
random.array.betaprime,"base.random.betaprime,random.strided.betaprime"
24262427
random.array.cosine,"base.random.cosine,random.strided.cosine"

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
@@ -2421,6 +2421,7 @@ Proxy,"@stdlib/proxy-ctor"
24212421
push,"@stdlib/utils-push"
24222422
quarterOfYear,"@stdlib/time-quarter-of-year"
24232423
random.array.arcsine,"@stdlib/random-array-arcsine"
2424+
random.array.bernoulli,"@stdlib/random-array-bernoulli"
24242425
random.array.beta,"@stdlib/random-array-beta"
24252426
random.array.betaprime,"@stdlib/random-array-betaprime"
24262427
random.array.cosine,"@stdlib/random-array-cosine"

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
@@ -2421,6 +2421,7 @@ Proxy
24212421
push
24222422
quarterOfYear
24232423
random.array.arcsine
2424+
random.array.bernoulli
24242425
random.array.beta
24252426
random.array.betaprime
24262427
random.array.cosine

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

+12
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ ns.push({
3838
]
3939
});
4040

41+
ns.push({
42+
'alias': 'random.array.bernoulli',
43+
'path': '@stdlib/random/array/bernoulli',
44+
'value': require( '@stdlib/random/array/bernoulli' ),
45+
'type': 'Function',
46+
'related': [
47+
'@stdlib/random/bernoulli',
48+
'@stdlib/random/base/bernoulli',
49+
'@stdlib/random/strided/bernoulli'
50+
]
51+
});
52+
4153
ns.push({
4254
'alias': 'random.array.beta',
4355
'path': '@stdlib/random/array/beta',

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

+1
Original file line numberDiff line numberDiff line change
@@ -2421,6 +2421,7 @@
24212421
"@stdlib/utils/push",push
24222422
"@stdlib/time/quarter-of-year",quarterOfYear
24232423
"@stdlib/random/array/arcsine",random.array.arcsine
2424+
"@stdlib/random/array/bernoulli",random.array.bernoulli
24242425
"@stdlib/random/array/beta",random.array.beta
24252426
"@stdlib/random/array/betaprime",random.array.betaprime
24262427
"@stdlib/random/array/cosine",random.array.cosine

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

+1
Original file line numberDiff line numberDiff line change
@@ -2421,6 +2421,7 @@
24212421
"@stdlib/utils/push","@stdlib/utils/pop,@stdlib/utils/shift,@stdlib/utils/unshift"
24222422
"@stdlib/time/quarter-of-year","@stdlib/time/day-of-year"
24232423
"@stdlib/random/array/arcsine","@stdlib/random/base/arcsine,@stdlib/random/strided/arcsine"
2424+
"@stdlib/random/array/bernoulli","@stdlib/random/base/bernoulli"
24242425
"@stdlib/random/array/beta","@stdlib/random/base/beta,@stdlib/random/strided/beta"
24252426
"@stdlib/random/array/betaprime","@stdlib/random/base/betaprime,@stdlib/random/strided/betaprime"
24262427
"@stdlib/random/array/cosine","@stdlib/random/base/cosine,@stdlib/random/strided/cosine"

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
@@ -2421,6 +2421,7 @@
24212421
"@stdlib/utils/push","@stdlib/utils-push"
24222422
"@stdlib/time/quarter-of-year","@stdlib/time-quarter-of-year"
24232423
"@stdlib/random/array/arcsine","@stdlib/random-array-arcsine"
2424+
"@stdlib/random/array/bernoulli","@stdlib/random-array-bernoulli"
24242425
"@stdlib/random/array/beta","@stdlib/random-array-beta"
24252426
"@stdlib/random/array/betaprime","@stdlib/random-array-betaprime"
24262427
"@stdlib/random/array/cosine","@stdlib/random-array-cosine"

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
@@ -2421,6 +2421,7 @@
24212421
"@stdlib/utils-push","@stdlib/utils/push"
24222422
"@stdlib/time-quarter-of-year","@stdlib/time/quarter-of-year"
24232423
"@stdlib/random-array-arcsine","@stdlib/random/array/arcsine"
2424+
"@stdlib/random-array-bernoulli","@stdlib/random/array/bernoulli"
24242425
"@stdlib/random-array-beta","@stdlib/random/array/beta"
24252426
"@stdlib/random-array-betaprime","@stdlib/random/array/betaprime"
24262427
"@stdlib/random-array-cosine","@stdlib/random/array/cosine"

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ArrayBuffer.prototype.slice,"var b1 = new ArrayBuffer( 10 );\nvar b2 = b1.slice(
4242
arraybuffer2buffer,"var ab = new ArrayBuffer( 10 )\nvar buf = arraybuffer2buffer( ab )\nvar len = buf.length\nbuf = arraybuffer2buffer( ab, 2, 6 )\nlen = buf.length\n"
4343
arrayCtors,"var ctor = arrayCtors( 'float64' )\nctor = arrayCtors( 'float' )\n"
4444
arrayDataType,"var arr = new Float64Array( 10 );\nvar dt = arrayDataType( arr )\ndt = arrayDataType( 'beep' )\n"
45-
arrayDataTypes,"var out = arrayDataTypes()\nout = arrayDataTypes( 'floating_point' )\n"
45+
arrayDataTypes,"var out = arrayDataTypes()\nout = arrayDataTypes( 'floating_point' )\nout = arrayDataTypes( 'floating_point_and_generic' )\n"
4646
arrayMinDataType,"var dt = arrayMinDataType( 3.141592653589793 )\ndt = arrayMinDataType( 3 )\ndt = arrayMinDataType( -3 )\ndt = arrayMinDataType( '-3' )\n"
4747
arrayNextDataType,"var out = arrayNextDataType( 'float32' )\n"
4848
arrayPromotionRules,"var out = arrayPromotionRules( 'float32', 'int32' )\n"
@@ -3754,6 +3754,7 @@ NUM_CPUS,"NUM_CPUS\n"
37543754
num2words,"var out = num2words( 123 )\nout = num2words( 16.31 )\nout = num2words( 123, { 'lang': 'de' } )\n"
37553755
Number,"var v = new Number( 5 )\n"
37563756
numel,"var n = numel( ndzeros( [ 3, 3, 3 ] ) )\n"
3757+
numelDimension,"var out = numelDimension( ndzeros( [ 4, 2, 3 ] ), 0 )\n"
37573758
numGraphemeClusters,"var out = numGraphemeClusters( 'beep' )\nout = numGraphemeClusters( '🌷' )\n"
37583759
Object,"var o = new Object( null )\no = new Object( 5.0 )\no = new Object( 'beep' )\n"
37593760
Object.assign,"var o = Object.assign( {}, { 'a': 1 }, { 'b': 2 } )\n"
@@ -3888,6 +3889,7 @@ random.array.discreteUniform.state,"var out = random.array.discreteUniform( 3, -
38883889
random.array.discreteUniform.stateLength,"var len = random.array.discreteUniform.stateLength;\n"
38893890
random.array.discreteUniform.byteLength,"var sz = random.array.discreteUniform.byteLength;\n"
38903891
random.array.exponential,"var out = random.array.exponential( 3, 2.0 )\n"
3892+
random.array.exponential.assign,"var x = azeros( 3, 'float64' );\nvar out = random.array.exponential.assign( 2.0, x )\nvar bool = ( out === x )\n"
38913893
random.array.exponential.factory,"var fcn = random.array.exponential.factory();\nvar out = fcn( 3, 2.0 )\nfcn = random.array.exponential.factory( 2.0 );\nout = fcn( 3 )\n"
38923894
random.array.exponential.PRNG,"var prng = random.array.exponential.PRNG;\n"
38933895
random.array.exponential.seed,"var seed = random.array.exponential.seed;\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

+13-3
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

+2
Original file line numberDiff line numberDiff line change
@@ -3754,6 +3754,7 @@ NUM_CPUS,"\nNUM_CPUS\n Number of CPUs.\n"
37543754
num2words,"\nnum2words( value:integer[, options:Object] )\n Converts a number to a word representation.\n"
37553755
Number,"\nNumber( value:number )\n Returns a Number object.\n"
37563756
numel,"\nnumel( x:ndarray )\n Returns the number of elements in an ndarray.\n"
3757+
numelDimension,"\nnumelDimension( x:ndarray, dim:integer )\n Returns the size (i.e., number of elements) of a specified dimension for a\n provided ndarray.\n"
37573758
numGraphemeClusters,"\nnumGraphemeClusters( str:string )\n Returns the number of grapheme clusters in a string.\n"
37583759
Object,"\nObject( value:any )\n Returns an object.\n"
37593760
Object.assign,"\nObject.assign( target:Object, ...sources:Object )\n Assigns enumerable and own properties from source objects to a target\n object.\n"
@@ -3888,6 +3889,7 @@ random.array.discreteUniform.state,"\nrandom.array.discreteUniform.state\n Ge
38883889
random.array.discreteUniform.stateLength,"\nrandom.array.discreteUniform.stateLength\n Length of generator state.\n"
38893890
random.array.discreteUniform.byteLength,"\nrandom.array.discreteUniform.byteLength\n Size (in bytes) of generator state.\n"
38903891
random.array.exponential,"\nrandom.array.exponential( len:integer, lambda:number[, options:Object] )\n Returns an array containing pseudorandom numbers drawn from an exponential\n distribution.\n"
3892+
random.array.exponential.assign,"\nrandom.array.exponential.assign( lambda:number, \n out:Array|Float64Array|Float32Array )\n Fills an array with pseudorandom numbers drawn from an exponential\n distribution.\n"
38913893
random.array.exponential.factory,"\nrandom.array.exponential.factory( [lambda:number, ][options:Object] )\n Returns a function for creating arrays containing pseudorandom numbers drawn\n from an exponential distribution.\n"
38923894
random.array.exponential.PRNG,"\nrandom.array.exponential.PRNG\n Underlying pseudorandom number generator.\n"
38933895
random.array.exponential.seed,"\nrandom.array.exponential.seed\n Pseudorandom number generator seed.\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

+2
Original file line numberDiff line numberDiff line change
@@ -3791,6 +3791,7 @@ NUM_CPUS,"NUM_CPUS"
37913791
num2words,"num2words( value[, options] )"
37923792
Number,"Number( value )"
37933793
numel,"numel( x )"
3794+
numelDimension,"numelDimension( x, dim )"
37943795
numGraphemeClusters,"numGraphemeClusters( str )"
37953796
Object,"Object( value )"
37963797
Object.assign,"Object.assign( target, ...sources )"
@@ -3925,6 +3926,7 @@ random.array.discreteUniform.state,"random.array.discreteUniform.state"
39253926
random.array.discreteUniform.stateLength,"random.array.discreteUniform.stateLength"
39263927
random.array.discreteUniform.byteLength,"random.array.discreteUniform.byteLength"
39273928
random.array.exponential,"random.array.exponential( len, lambda[, options] )"
3929+
random.array.exponential.assign,"random.array.exponential.assign( lambda, out )"
39283930
random.array.exponential.factory,"random.array.exponential.factory( [lambda, ][options] )"
39293931
random.array.exponential.PRNG,"random.array.exponential.PRNG"
39303932
random.array.exponential.seed,"random.array.exponential.seed"

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

+2
Original file line numberDiff line numberDiff line change
@@ -3791,6 +3791,7 @@ NUM_CPUS,"NUM_CPUS"
37913791
num2words,"num2words( value:integer[, options:Object] )"
37923792
Number,"Number( value:number )"
37933793
numel,"numel( x:ndarray )"
3794+
numelDimension,"numelDimension( x:ndarray, dim:integer )"
37943795
numGraphemeClusters,"numGraphemeClusters( str:string )"
37953796
Object,"Object( value:any )"
37963797
Object.assign,"Object.assign( target:Object, ...sources:Object )"
@@ -3925,6 +3926,7 @@ random.array.discreteUniform.state,"random.array.discreteUniform.state"
39253926
random.array.discreteUniform.stateLength,"random.array.discreteUniform.stateLength"
39263927
random.array.discreteUniform.byteLength,"random.array.discreteUniform.byteLength"
39273928
random.array.exponential,"random.array.exponential( len:integer, lambda:number[, options:Object] )"
3929+
random.array.exponential.assign,"random.array.exponential.assign( lambda:number, out:Array|Float64Array|Float32Array )"
39283930
random.array.exponential.factory,"random.array.exponential.factory( [lambda:number, ][options:Object] )"
39293931
random.array.exponential.PRNG,"random.array.exponential.PRNG"
39303932
random.array.exponential.seed,"random.array.exponential.seed"

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

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

0 commit comments

Comments
 (0)