Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Feb 8, 2025
1 parent bc03893 commit bfc4e76
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ indent_style = tab
[*.{f,f.txt}]
indent_style = space
indent_size = 2
insert_final_newline = false

# Set properties for shell files:
[*.{sh,sh.txt}]
Expand Down
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
<section class="release" id="unreleased">

## Unreleased (2025-01-12)
## Unreleased (2025-02-08)

<section class="commits">

### Commits

<details>

- [`fa15161`](https://github.com/stdlib-js/stdlib/commit/fa15161761664bbdd2123292d3f1d7cf2d0f0a6d) - **bench:** refactor random number generation in `stats/base/dists/frechet` [(#4922)](https://github.com/stdlib-js/stdlib/pull/4922) _(by Karan Anand, stdlib-bot)_
- [`27bcbf6`](https://github.com/stdlib-js/stdlib/commit/27bcbf6b931385008c1210cddb77be5c86b6d94c) - **chore:** directly draw from desired distribution and tweak ranges _(by Philipp Burckhardt)_
- [`4a70790`](https://github.com/stdlib-js/stdlib/commit/4a707903dfef7c2b56216000165706497d19a251) - **style:** add missing spaces _(by Philipp Burckhardt)_

Expand All @@ -25,8 +26,9 @@

### Contributors

A total of 1 person contributed to this release. Thank you to this contributor:
A total of 2 people contributed to this release. Thank you to the following contributors:

- Karan Anand
- Philipp Burckhardt

</section>
Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Daniel Killenberger <[email protected]>
Daniel Yu <[email protected]>
Debashis Maharana <[email protected]>
Desh Deepak Kant <[email protected]>
Dev Goel <[email protected]>
Dhruv Arvind Singh <[email protected]>
Divyansh Seth <[email protected]>
Dominic Lim <[email protected]>
Expand Down Expand Up @@ -62,6 +63,7 @@ Marcus Fantham <[email protected]>
Matt Cochrane <[email protected]>
Mihir Pandit <[email protected]>
Milan Raj <[email protected]>
Mohammad Bin Aftab <[email protected]>
Mohammad Kaif <[email protected]>
Momtchil Momtchev <[email protected]>
Muhammad Haris <[email protected]>
Expand Down Expand Up @@ -124,5 +126,6 @@ Xiaochuan Ye <[email protected]>
Yaswanth Kosuru <[email protected]>
Yernar Yergaziyev <[email protected]>
olenkabilonizhka <[email protected]>
pranav-1720 <[email protected]>
rainn <[email protected]>
rei2hu <[email protected]>
19 changes: 14 additions & 5 deletions benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
// MODULES //

var bench = require( '@stdlib/bench-harness' );
var randu = require( '@stdlib/random-base-randu' );
var Float64Array = require( '@stdlib/array-float64' );
var uniform = require( '@stdlib/random-base-uniform' );
var isnan = require( '@stdlib/math-base-assert-is-nan' );
var EPS = require( '@stdlib/constants-float64-eps' );
var pkg = require( './../package.json' ).name;
Expand All @@ -32,17 +33,25 @@ var mean = require( './../lib' );

bench( pkg, function benchmark( b ) {
var alpha;
var len;
var m;
var s;
var y;
var i;

len = 100;
alpha = new Float64Array( len );
s = new Float64Array( len );
m = new Float64Array( len );
for ( i = 0; i < len; i++ ) {
alpha[ i ] = uniform( EPS, 20.0 );
s[ i ] = uniform( EPS, 20.0 );
m[ i ] = uniform( -20.0, 20.0 );
}

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
alpha = ( randu()*20.0 ) + EPS;
s = ( randu()*20.0 ) + EPS;
m = ( randu()*40.0 ) - 20.0;
y = mean( alpha, s, m );
y = mean( alpha[ i % len ], s[ i % len ], m[ i % len ] );
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@
"@stdlib/math-base-special-gamma": "^0.3.0"
},
"devDependencies": {
"@stdlib/array-float64": "^0.2.2",
"@stdlib/constants-float64-eps": "^0.2.2",
"@stdlib/constants-float64-ninf": "^0.2.2",
"@stdlib/math-base-special-abs": "^0.2.2",
"@stdlib/random-base-randu": "^0.2.1",
"@stdlib/random-base-uniform": "^0.2.1",
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
"istanbul": "^0.4.1",
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
Expand Down

0 comments on commit bfc4e76

Please sign in to comment.