-
-
Notifications
You must be signed in to change notification settings - Fork 867
Description
This commit has 9 comment(s) from core contributors that require attention.
Commit: 3eff83f89e26a589f041538aa34fe47446cbdde8
Comments:
-
Line 191: @stdlib-bot This empty line should be removed.
stdlib/lib/node_modules/@stdlib/stats/base/dists/gumbel/mgf/README.md
Lines 188 to 194 in 3eff83f
Evaluates the [moment-generating function][mgf] (MGF) for a [Gumbel][gumbel-distribution] distribution with parameters `mu` (location parameter) and `beta > 0` (scale parameter). ```c double out = stdlib_base_dists_gumbel_mgf( -1.0, 0.0, 1.0 ); // returns ~6.0 -
Line 193: @stdlib-bot This should be
( -1.0, 0.0, 3.0 );
to match the JS example above.stdlib/lib/node_modules/@stdlib/stats/base/dists/gumbel/mgf/README.md
Lines 190 to 196 in 3eff83f
```c double out = stdlib_base_dists_gumbel_mgf( -1.0, 0.0, 1.0 ); // returns ~6.0 ``` -
Line 187: @stdlib-bot This should be
mgf
, notmedian
.stdlib/lib/node_modules/@stdlib/stats/base/dists/gumbel/mgf/README.md
Lines 184 to 190 in 3eff83f
#include "stdlib/stats/base/dists/gumbel/mgf.h" ``` #### stdlib_base_dists_gumbel_median( t, mu, beta ) Evaluates the [moment-generating function][mgf] (MGF) for a [Gumbel][gumbel-distribution] distribution with parameters `mu` (location parameter) and `beta > 0` (scale parameter). -
Line 194: @stdlib-bot The JS example above has this as exact. We should probably follow suit here. s/~6.0/6.0/
stdlib/lib/node_modules/@stdlib/stats/base/dists/gumbel/mgf/README.md
Lines 191 to 197 in 3eff83f
```c double out = stdlib_base_dists_gumbel_mgf( -1.0, 0.0, 1.0 ); // returns ~6.0 ``` The function accepts the following arguments: -
Line 49: @stdlib-bot The additional parentheses are unnecessary and should be removed.
stdlib/lib/node_modules/@stdlib/stats/base/dists/gumbel/mgf/benchmark/benchmark.js
Lines 46 to 52 in 3eff83f
for ( i = 0; i < len; i++ ) { mu[ i ] = uniform( -50.0, 50.0 ); beta[ i ] = uniform( EPS, 20.0 ); t[ i ] = uniform( 0.0, ( 1.0 / beta[ i ] ) ); } b.tic(); -
Line 58: @stdlib-bot The parentheses around
1.0 / beta[ i ]
are unnecessary and should be removed.stdlib/lib/node_modules/@stdlib/stats/base/dists/gumbel/mgf/benchmark/benchmark.native.js
Lines 55 to 61 in 3eff83f
for ( i = 0; i < len; i++ ) { mu[ i ] = uniform( -50.0, 50.0 ); beta[ i ] = uniform( EPS, 20.0 ); t[ i ] = uniform( 0.0, ( 1.0 / beta[ i ] ) ); } b.tic(); -
Line 107: @stdlib-bot The order of the arguments should be reversed and s/0/0.0/
stdlib/lib/node_modules/@stdlib/stats/base/dists/gumbel/mgf/benchmark/c/benchmark.c
Lines 104 to 110 in 3eff83f
for ( i = 0; i < 100; i++ ) { mu[ i ] = random_uniform( -50.0, 50.0 ); beta[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 ); _t[ i ] = random_uniform( 1.0 / beta[ i ], 0 ); } t = tic(); -
Line 22: @stdlib-bot L22-24 should be
/* * If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler. */
Lines 19 to 25 in 3eff83f
#ifndef STDLIB_STATS_BASE_DISTS_GUMBEL_MGF_H #define STDLIB_STATS_BASE_DISTS_GUMBEL_MGF_H /* * Evaluates the moment-generating function (MGF) for a Gumbel distribution with location parameter `mu` and scale parameter `b` at a value `t`. */ #ifdef __cplusplus -
Line 30: @stdlib-bot This description should be
Evaluates the moment-generating function (MGF) for a Gumbel distribution with location parameter `mu` and scale parameter `b` at a value `t`.
Lines 27 to 33 in 3eff83f
#endif /** * Evaluates the cumulative distribution function (MGF) for a Gumbel distribution with location parameter `mu` and scale parameter `beta` at a value `x`. */ double stdlib_base_dists_gumbel_mgf( const double t, const double mu, const double beta );
Interested in helping improve the project? If you are, the comment linked to above has 9 comment(s) from core contributors that could use your attention.
What do you need to do?
- Open the above linked comments mentioning @stdlib-bot.
- Review the suggested changes or follow-up tasks (e.g., formatting improvements, small refactorings, or clean-up).
- If you are a first-time contributor, follow the contributing and development guides to setup your local environment for contributing to stdlib. If you are already a seasoned stdlib contributor, create a new branch on your local fork for making the changes.
- Make all the desired changes and commit those changes to a local branch.
- Push the changes to GitHub and open a new pull request against the
develop
branch of the main stdlib development repository.
Once you've opened a pull request, a stdlib maintainer will review your work and suggest any follow-up changes.
And that's it!
Thank you for your help in reducing the project backlog and in improving the quality of stdlib. 🙌
Notes
- For older commits, there is a chance that comments will have been already been addressed due to other refactorings. If you find that to be true, don't worry! Just move on to addressing the next comment, and, when opening your pull request and describing your proposed changes, be sure to link to the comment and mention that it has been addressed. This will help reviewers when reviewing your code!
This issue was created automatically to address commit comments tagging @stdlib-bot.