-
-
Notifications
You must be signed in to change notification settings - Fork 908
Description
This commit has 6 comment(s) from core contributors that require attention.
Commit: 3ee60b4370969d787a3446b90b276f74bc2f9cb3
Comments:
-
Line 189: @stdlib-bot Missing Oxford comma between
(upper limit)
andand
.stdlib/lib/node_modules/@stdlib/stats/base/dists/triangular/quantile/README.md
Lines 186 to 192 in 3ee60b4
#### stdlib_base_dists_triangular_quantile( p, a, b, c ) Evaluates the [quantile function][quantile-function] for a [triangular][triangular-distribution] distribution with parameters `a` (lower limit), `b` (upper limit) and `c` (mode). ```c double out = stdlib_base_dists_triangular_quantile( 0.9, -1.0, 1.0, 0.0 ); -
Line 105: @stdlib-bot Missing space between
1.0
and)
.stdlib/lib/node_modules/@stdlib/stats/base/dists/triangular/quantile/benchmark/c/benchmark.c
Lines 102 to 108 in 3ee60b4
int i; for ( i = 0; i < 100; i++ ) { p[ i ] = random_uniform( 0.0, 1.0); min[ i ] = random_uniform( 0.0, 10.0 ); max[ i ] = random_uniform( min[ i ], min[ i ]+10.0 ); mode[ i ] = random_uniform( min[ i ], max[ i ] ); -
Line 30: @stdlib-bot Missing Oxford comma between
(upper limit)
andand
.Lines 27 to 33 in 3ee60b4
#endif /** * Evaluates the quantile function for a triangular distribution with parameters `a` (lower limit), `b` (upper limit) and `c` (mode). */ double stdlib_base_dists_triangular_quantile( const double p, const double a, const double b, const double c ); -
Line 29: @stdlib-bot This should be
Evaluates the quantile function for a triangular distribution with parameters
a
(lower limit),b
(upper limit) andc
(mode).stdlib/lib/node_modules/@stdlib/stats/base/dists/triangular/quantile/lib/native.js
Lines 26 to 32 in 3ee60b4
// MAIN // /** * Evaluates the quantile function for a triangular distribution with lower limit `a` and upper limit `b` and mode `c` at a probability `p`. * * @private * @param {Probability} p - input value -
Line 24: @stdlib-bot Missing Oxford comma.
stdlib/lib/node_modules/@stdlib/stats/base/dists/triangular/quantile/src/main.c
Lines 21 to 27 in 3ee60b4
#include "stdlib/math/base/special/sqrt.h" /** * Evaluates the quantile function for a triangular distribution with parameters `a` (lower limit), `b` (upper limit) and `c` (mode). * * @param p input probability * @param a minimum support -
Line 51: @stdlib-bot Should be
( c - a )
.stdlib/lib/node_modules/@stdlib/stats/base/dists/triangular/quantile/src/main.c
Lines 48 to 54 in 3ee60b4
} double pInflection = ( c - a ) / ( b - a ); if ( p < pInflection ) { return a + stdlib_base_sqrt( ( b - a ) * ( c - a) * p ); } if ( p > pInflection ) { return b - stdlib_base_sqrt( ( b - a ) * ( b - c ) * ( 1.0 - p ) );
Interested in helping improve the project? If you are, the comment linked to above has 6 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.