Skip to content

Commit 6989a0d

Browse files
authored
chore: minor clean-up
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent b8f93ba commit 6989a0d

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

lib/node_modules/@stdlib/stats/base/dists/pareto-type1/cdf/benchmark/benchmark.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ bench( pkg+':factory', function benchmark( b ) {
8282
x[ i ] = uniform( EPS, 50.0 );
8383
}
8484

85-
len = 100;
86-
x = new Float64Array( len );
87-
for ( i = 0; i < len; i++ ) {
88-
x[ i ] = uniform( EPS, 50.0 + EPS );
89-
}
90-
9185
b.tic();
9286
for ( i = 0; i < b.iterations; i++ ) {
9387
y = mycdf( x[ i % len ] );

lib/node_modules/@stdlib/stats/base/dists/pareto-type1/cdf/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ static double benchmark( void ) {
102102

103103
for ( i = 0; i < 100; i++ ) {
104104
x[ i ] = random_uniform( 0.0, 20.0 );
105-
alpha[ i ] = random_uniform( 0.0, 100.0 );
106-
beta[ i ] = random_uniform( 0.0, 100.0 );
105+
alpha[ i ] = random_uniform( 0.1, 100.0 );
106+
beta[ i ] = random_uniform( 0.1, 100.0 );
107107
}
108108

109109
t = tic();

lib/node_modules/@stdlib/stats/base/dists/pareto-type1/cdf/src/addon.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@
1919
#include "stdlib/stats/base/dists/pareto-type1/cdf.h"
2020
#include "stdlib/math/base/napi/ternary.h"
2121

22-
// cppcheck-suppress shadowFunction
2322
STDLIB_MATH_BASE_NAPI_MODULE_DDD_D( stdlib_base_dists_pareto_type1_cdf )

0 commit comments

Comments
 (0)