diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/benchmark/benchmark.js index 54a26f984489..5020dcd38fe1 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/benchmark/benchmark.js @@ -30,13 +30,17 @@ var cdf = require( './../lib' ); // MAIN // bench( pkg, function benchmark( b ) { + var opts; var x; var c; var y; var i; - x = uniform( 100, 0.0, 1.0 ); - c = uniform( 100, 0.1, 10.0 ); + opts = { + 'dtype': 'float64' + }; + x = uniform( 100, 0.0, 1.0, opts ); + c = uniform( 100, 0.1, 10.0, opts ); b.tic(); for ( i = 0; i < b.iterations; i++ ) { @@ -55,11 +59,15 @@ bench( pkg, function benchmark( b ) { bench( pkg+':factory', function benchmark( b ) { var mycdf; + var opts; var x; var y; var i; - x = uniform( 100, 0.0, 1.0 ); + opts = { + 'dtype': 'float64' + }; + x = uniform( 100, 0.0, 1.0, opts ); mycdf = cdf.factory( 5.0 ); b.tic(); diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/test/test.cdf.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/test/test.cdf.js index 9f67e8cf80fb..c078f88e10cb 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/test/test.cdf.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/test/test.cdf.js @@ -75,16 +75,16 @@ tape( 'if provided a number greater than or equal to one for `x` and a finite `c var y; y = cdf( PINF, 0.5 ); - t.equal( y, 1.0, 'returns 1' ); + t.equal( y, 1.0, 'returns expected value' ); y = cdf( 100.0, 0.5 ); - t.equal( y, 1.0, 'returns 1' ); + t.equal( y, 1.0, 'returns expected value' ); y = cdf( 10.0, 0.5 ); - t.equal( y, 1.0, 'returns 1' ); + t.equal( y, 1.0, 'returns expected value' ); y = cdf( 1.0, 0.5 ); - t.equal( y, 1.0, 'returns 1' ); + t.equal( y, 1.0, 'returns expected value' ); t.end(); }); @@ -93,16 +93,16 @@ tape( 'if provided a number less than or equal to zero for `x` and a finite `c`, var y; y = cdf( NINF, 0.5 ); - t.equal( y, 0.0, 'returns 0' ); + t.equal( y, 0.0, 'returns expected value' ); y = cdf( -100.0, 0.5 ); - t.equal( y, 0.0, 'returns 0' ); + t.equal( y, 0.0, 'returns expected value' ); y = cdf( -1.0, 0.5 ); - t.equal( y, 0.0, 'returns 0' ); + t.equal( y, 0.0, 'returns expected value' ); y = cdf( 0.0, 0.5 ); - t.equal( y, 0.0, 'returns 0' ); + t.equal( y, 0.0, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/test/test.factory.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/test/test.factory.js index b7ce18e6639e..af5a052a44b1 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/test/test.factory.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/cdf/test/test.factory.js @@ -92,16 +92,16 @@ tape( 'if provided a finite `c`, the function returns a function which returns ` cdf = factory( 0.5 ); y = cdf( PINF ); - t.equal( y, 1.0, 'returns 1' ); + t.equal( y, 1.0, 'returns expected value' ); y = cdf( 100.0 ); - t.equal( y, 1.0, 'returns 1' ); + t.equal( y, 1.0, 'returns expected value' ); y = cdf( 10.0 ); - t.equal( y, 1.0, 'returns 1' ); + t.equal( y, 1.0, 'returns expected value' ); y = cdf( 1.0 ); - t.equal( y, 1.0, 'returns 1' ); + t.equal( y, 1.0, 'returns expected value' ); t.end(); }); @@ -112,19 +112,19 @@ tape( 'if provided a finite `c`, the function returns a function which returns ` cdf = factory( 0.5 ); y = cdf( NINF ); - t.equal( y, 0.0, 'returns 0' ); + t.equal( y, 0.0, 'returns expected value' ); y = cdf( -100.0 ); - t.equal( y, 0.0, 'returns 0' ); + t.equal( y, 0.0, 'returns expected value' ); y = cdf( -10.0 ); - t.equal( y, 0.0, 'returns 0' ); + t.equal( y, 0.0, 'returns expected value' ); y = cdf( -1.0 ); - t.equal( y, 0.0, 'returns 0' ); + t.equal( y, 0.0, 'returns expected value' ); y = cdf( 0.0 ); - t.equal( y, 0.0, 'returns 0' ); + t.equal( y, 0.0, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/entropy/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/entropy/benchmark/benchmark.js index f6ccbf0abab9..3755b7255abb 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bradford/entropy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/entropy/benchmark/benchmark.js @@ -30,11 +30,15 @@ var entropy = require( './../lib' ); // MAIN // bench( pkg, function benchmark( b ) { + var opts; var c; var y; var i; - c = uniform( 100, 0.1, 10.0 ); + opts = { + 'dtype': 'float64' + }; + c = uniform( 100, 0.1, 10.0, opts ); b.tic(); for ( i = 0; i < b.iterations; i++ ) { diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/mean/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/mean/benchmark/benchmark.js index afa73bd55cb9..7018d57465c3 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bradford/mean/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/mean/benchmark/benchmark.js @@ -30,11 +30,15 @@ var mean = require( './../lib' ); // MAIN // bench( pkg, function benchmark( b ) { + var opts; var c; var y; var i; - c = uniform( 100, 0.1, 10.0 ); + opts = { + 'dtype': 'float64' + }; + c = uniform( 100, 0.1, 10.0, opts ); b.tic(); for ( i = 0; i < b.iterations; i++ ) { diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/median/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/median/benchmark/benchmark.js index 13f37e7676d8..205c7b7f11d3 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bradford/median/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/median/benchmark/benchmark.js @@ -30,11 +30,15 @@ var median = require( './../lib' ); // MAIN // bench( pkg, function benchmark( b ) { + var opts; var c; var y; var i; - c = uniform( 100, 0.1, 10.0 ); + opts = { + 'dtype': 'float64' + }; + c = uniform( 100, 0.1, 10.0, opts ); b.tic(); for ( i = 0; i < b.iterations; i++ ) { diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/mode/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/mode/benchmark/benchmark.js index 5f6132132bc6..a4f921db3b1d 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bradford/mode/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/mode/benchmark/benchmark.js @@ -30,11 +30,15 @@ var mode = require( './../lib' ); // MAIN // bench( pkg, function benchmark( b ) { + var opts; var c; var y; var i; - c = uniform( 100, 0.1, 10.0 ); + opts = { + 'dtype': 'float64' + }; + c = uniform( 100, 0.1, 10.0, opts ); b.tic(); for ( i = 0; i < b.iterations; i++ ) {