Skip to content

docs: update REPL namespace documentation #2722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/code-blocks/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5193,7 +5193,7 @@ tryFunction,"function fcn() { throw new Error( 'beep boop' ); };\nvar f = tryFun
tryRequire,"var out = tryRequire( '_unknown_module_id_' )\n"
trythen,"function x() {\n if ( base.random.randu() < 0.5 ) {\n throw new Error( 'beep' );\n }\n return 1.0;\n };\nfunction y() {\n return -1.0;\n };\nvar z = trythen( x, y )\n"
trythenAsync,"function x( clbk ) {\n setTimeout( onTimeout, 0 );\n function onTimeout() {\n clbk( new Error( 'beep' ) );\n }\n };\nfunction y( clbk ) {\n setTimeout( onTimeout, 0 );\n function onTimeout() {\n clbk( null, 'boop' );\n }\n };\nfunction done( error, result ) {\n if ( error ) {\n throw error;\n }\n console.log( result );\n };\ntrythenAsync( x, y, done )\n"
ttest,"var rnorm = base.random.normal.factory( 0.0, 2.0, { 'seed': 5776 } );\nvar x = new Array( 100 );\nfor ( var i = 0; i < x.length; i++ ) {\n x[ i ] = rnorm();\n }\nvar out = ttest( x )\nrnorm = base.random.normal.factory( 1.0, 2.0, { 'seed': 786 } );\nx = new Array( 100 );\nvar y = new Array( 100 );\nfor ( i = 0; i < x.length; i++ ) {\n x[ i ] = rnorm();\n y[ i ] = rnorm();\n }\nout = ttest( x, y )\nvar table = out.print()\narr = [ 2, 4, 3, 1, 0 ];\nout = ttest( arr, { 'alpha': 0.01 } );\ntable = out.print()\nvar arr = [ 4, 4, 6, 6, 5 ];\nout = ttest( arr, { 'mu': 5 } )\narr = [ 4, 4, 6, 6, 5 ];\nout = ttest( arr, { 'alternative': 'less' } );\ntable = out.print()\nout = ttest( arr, { 'alternative': 'greater' } );\ntable = out.print()\n"
ttest,"var rnorm = base.random.normal.factory( 0.0, 2.0, { 'seed': 5776 } );\nvar x = new Array( 100 );\nfor ( var i = 0; i < x.length; i++ ) {\n x[ i ] = rnorm();\n }\nvar out = ttest( x )\nrnorm = base.random.normal.factory( 1.0, 2.0, { 'seed': 786 } );\nx = new Array( 100 );\nvar y = new Array( 100 );\nfor ( i = 0; i < x.length; i++ ) {\n x[ i ] = rnorm();\n y[ i ] = rnorm();\n }\nout = ttest( x, y )\nvar table = out.print()\nvar arr = [ 2, 4, 3, 1, 0 ];\nout = ttest( arr, { 'alpha': 0.01 } );\ntable = out.print()\narr = [ 4, 4, 6, 6, 5 ];\nout = ttest( arr, { 'mu': 5 } )\narr = [ 4, 4, 6, 6, 5 ];\nout = ttest( arr, { 'alternative': 'less' } );\ntable = out.print()\nout = ttest( arr, { 'alternative': 'greater' } );\ntable = out.print()\n"
ttest2,"var x = [ 0.7, -1.6, -0.2, -1.2, -0.1, 3.4, 3.7, 0.8, 0.0, 2.0 ];\nvar y = [ 1.9, 0.8, 1.1, 0.1, -0.1, 4.4, 5.5, 1.6, 4.6, 3.4 ];\nvar out = ttest2( x, y )\nvar table = out.print()\nout = ttest2( x, y, { 'alpha': 0.1 } );\ntable = out.print()\nout = ttest2( x, y, { 'alternative': 'less' } );\ntable = out.print()\nout = ttest2( x, y, { 'alternative': 'greater' } );\ntable = out.print()\nx = [ 2, 3, 1, 4 ];\ny = [ 1, 2, 3, 1, 2, 5, 3, 4 ];\nout = ttest2( x, y, { 'variance': 'equal' } );\ntable = out.print()\nvar rnorm = base.random.normal.factory({ 'seed': 372 } );\nx = new Array( 100 );\nfor ( i = 0; i < x.length; i++ ) {\n x[ i ] = rnorm( 2.0, 3.0 );\n }\ny = new Array( 100 );\nfor ( i = 0; i < x.length; i++ ) {\n y[ i ] = rnorm( 1.0, 3.0 );\n }\nout = ttest2( x, y, { 'difference': 1.0, 'variance': 'equal' } )\n"
TWO_PI,"TWO_PI\n"
typedarray,"var arr = typedarray()\narr = typedarray( 'float32' )\nvar arr = typedarray( 5 )\narr = typedarray( 5, 'int32' )\nvar arr1 = typedarray( [ 0.5, 0.5, 0.5 ] );\nvar arr2 = typedarray( arr1, 'float32' )\nvar arr1 = [ 0.5, 0.5, 0.5 ];\nvar arr2 = typedarray( arr1, 'float32' )\nvar buf = new ArrayBuffer( 16 );\nvar arr = typedarray( buf, 0, 4, 'float32' )\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/code-blocks/data/data.json

Large diffs are not rendered by default.

Loading
Loading