Skip to content

Commit f5418ce

Browse files
chore: completed the code review task
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: passed - task: run_c_benchmarks status: passed - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: passed - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 71f841c commit f5418ce

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

lib/node_modules/@stdlib/stats/base/dists/geometric/mode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ for ( i = 0; i < 10; i++ ) {
148148

149149
#### stdlib_base_dists_geometric_mode( p )
150150

151-
Returns the mode of a geometric distribution.
151+
Returns the [mode][mode] of a [geometric][geometric-distribution] distribution with success probability `p`.
152152

153153
```c
154154
double out = stdlib_base_dists_geometric_mode( 0.5 );

lib/node_modules/@stdlib/stats/base/dists/geometric/mode/benchmark/benchmark.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ var bench = require( '@stdlib/bench' );
2424
var Float64Array = require( '@stdlib/array/float64' );
2525
var randu = require( '@stdlib/random/base/randu' );
2626
var isnan = require( '@stdlib/math/base/assert/is-nan' );
27-
var EPS = require( '@stdlib/constants/float64/eps' );
2827
var pkg = require( './../package.json' ).name;
2928
var mode = require( './../lib' );
3029

@@ -40,7 +39,7 @@ bench( pkg, function benchmark( b ) {
4039
len = 100;
4140
p = new Float64Array( len );
4241
for ( i = 0; i < len; i++ ) {
43-
p[ i ] = ( randu() * 1.0 ) + EPS;
42+
p[ i ] = ( randu() * 1.0 );
4443
}
4544

4645
b.tic();

lib/node_modules/@stdlib/stats/base/dists/geometric/mode/benchmark/benchmark.native.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ var Float64Array = require( '@stdlib/array/float64' );
2626
var tryRequire = require( '@stdlib/utils/try-require' );
2727
var randu = require( '@stdlib/random/base/randu' );
2828
var isnan = require( '@stdlib/math/base/assert/is-nan' );
29-
var EPS = require( '@stdlib/constants/float64/eps' );
3029
var pkg = require( './../package.json' ).name;
3130

3231

@@ -49,7 +48,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4948
len = 100;
5049
p = new Float64Array( len );
5150
for ( i = 0; i < len; i++ ) {
52-
p[ i ] = ( randu() * 1.0 ) + EPS;
51+
p[ i ] = ( randu() * 1.0 );
5352
}
5453

5554
b.tic();

lib/node_modules/@stdlib/stats/base/dists/geometric/mode/benchmark/c/benchmark.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818

1919
#include "stdlib/stats/base/dists/geometric/mode.h"
20-
#include "stdlib/constants/float64/eps.h"
2120
#include <stdlib.h>
2221
#include <stdio.h>
2322
#include <math.h>
@@ -100,7 +99,7 @@ static double benchmark( void ) {
10099
int i;
101100

102101
for ( i = 0; i < 100; i++ ) {
103-
p[ i ] = random_uniform( 0.0, 1.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
102+
p[ i ] = random_uniform( 0.0, 1.0 );
104103
}
105104

106105
t = tic();

lib/node_modules/@stdlib/stats/base/dists/geometric/mode/manifest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
"libraries": [],
5555
"libpath": [],
5656
"dependencies": [
57-
"@stdlib/math/base/assert/is-nan",
58-
"@stdlib/constants/float64/eps"
57+
"@stdlib/math/base/assert/is-nan"
5958
]
6059
},
6160
{

lib/node_modules/@stdlib/stats/base/dists/geometric/mode/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ double stdlib_base_dists_geometric_mode( const double p ) {
3535
p < 0.0 ||
3636
p > 1.0
3737
) {
38-
return 0.0 / 0.0; // NaN
38+
return 0.0 / 0.0; // NaN
3939
}
4040
return 0.0;
4141
}

0 commit comments

Comments
 (0)