Skip to content

Commit b0b0799

Browse files
chore: minor updates
1 parent fa075ba commit b0b0799

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/stats/base/dists/beta/pdf/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ bench( pkg, function benchmark( b ) {
5555

5656
b.tic();
5757
for ( i = 0; i < b.iterations; i++ ) {
58-
y = pdf( x[ i%100 ], alpha[ i%100 ], beta[ i%100 ] );
58+
y = pdf( x[ i % len ], alpha[ i % len ], beta[ i % len ] );
5959
if ( isnan( y ) ) {
6060
b.fail( 'should not return NaN' );
6161
}
@@ -89,7 +89,7 @@ bench( pkg+':factory', function benchmark( b ) {
8989

9090
b.tic();
9191
for ( i = 0; i < b.iterations; i++ ) {
92-
y = mypdf( x[ i%100 ] );
92+
y = mypdf( x[ i % len ] );
9393
if ( isnan( y ) ) {
9494
b.fail( 'should not return NaN' );
9595
}

lib/node_modules/@stdlib/stats/base/dists/beta/pdf/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
6464

6565
b.tic();
6666
for ( i = 0; i < b.iterations; i++ ) {
67-
y = pdf( x[ i%100 ], alpha[ i%100 ], beta[ i%100 ] );
67+
y = pdf( x[ i % len ], alpha[ i % len ], beta[ i % len ] );
6868
if ( isnan( y ) ) {
6969
b.fail( 'should not return NaN' );
7070
}

lib/node_modules/@stdlib/stats/base/dists/beta/pdf/benchmark/c/benchmark.c

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

104104
for ( i = 0; i < 100; i++ ) {
105-
alpha[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 2.0 );
105+
alpha[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 100.0 );
106106
}
107107
for ( i = 0; i < 100; i++ ) {
108108
beta[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 100.0 );
109109
}
110110
for ( i = 0; i < 100; i++ ) {
111-
x[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 100.0 );
111+
x[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 2.0 );
112112
}
113113

114114
t = tic();

lib/node_modules/@stdlib/stats/base/dists/beta/pdf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "stdlib/constants/float64/pinf.h"
2626

2727
/**
28-
* Evaluates the probability density function (logPDF) for a beta distribution with first shape parameter `alpha` and second shape parameter `beta` at a value `x`.
28+
* Evaluates the probability density function (logPDF) for a beta distribution with first shape parameter `alpha` and second shape parameter `beta`.
2929
*
3030
* @param x input value
3131
* @param alpha first shape parameter

0 commit comments

Comments
 (0)