Skip to content

Commit 6311ccf

Browse files
chore: minor updates
1 parent ecbe167 commit 6311ccf

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

lib/node_modules/@stdlib/stats/base/dists/degenerate/cdf/README.md

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

143143
#### stdlib_base_dists_degenerate_cdf( x, mu )
144144

145-
Evaluates the cumulative distribution function (CDF) for an degenerate distribution centered at `mu`.
145+
Evaluates the CDF of a degenerate distribution centered at `mu`.
146146

147147
```c
148148
double y = stdlib_base_dists_degenerate_cdf( 2.0, 3.0 );

lib/node_modules/@stdlib/stats/base/dists/degenerate/cdf/benchmark/benchmark.js

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

5050
b.tic();
5151
for ( i = 0; i < b.iterations; i++ ) {
52-
y = cdf( x[ i%100 ], mu[ i%100 ] );
52+
y = cdf( x[ i % len ], mu[ i % len ] );
5353
if ( isnan( y ) ) {
5454
b.fail( 'should not return NaN' );
5555
}
@@ -81,7 +81,7 @@ bench( pkg+':factory', function benchmark( b ) {
8181

8282
b.tic();
8383
for ( i = 0; i < b.iterations; i++ ) {
84-
y = mycdf( x[ i%100 ] );
84+
y = mycdf( x[ i % len ] );
8585
if ( isnan( y ) ) {
8686
b.fail( 'should not return NaN' );
8787
}

lib/node_modules/@stdlib/stats/base/dists/degenerate/cdf/benchmark/benchmark.native.js

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

5959
b.tic();
6060
for ( i = 0; i < b.iterations; i++ ) {
61-
y = cdf( x[ i%100 ], mu[ i%100 ] );
61+
y = cdf( x[ i % len ], mu[ i % len ] );
6262
if ( isnan( y ) ) {
6363
b.fail( 'should not return NaN' );
6464
}

lib/node_modules/@stdlib/stats/base/dists/degenerate/cdf/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static double benchmark( void ) {
100100
int i;
101101

102102
for ( i = 0; i < 100; i++ ) {
103-
x[ i ] = random_uniform( -1.0, 99.0 );
103+
x[ i ] = random_uniform( -100.0, 0.0 );
104104
}
105105
for ( i = 0; i < 100; i++ ) {
106106
mu[ i ] = random_uniform( -50.0, 50.0 );

lib/node_modules/@stdlib/stats/base/dists/degenerate/cdf/include/stdlib/stats/base/dists/degenerate/cdf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
Evaluates the cumulative distribution function (CDF) for an degenerate distribution centered at `mu`.
30+
* Evaluates the CDF of a degenerate distribution centered at `mu`.
3131
*/
3232
double stdlib_base_dists_degenerate_cdf( const double x, const double mu );
3333

lib/node_modules/@stdlib/stats/base/dists/degenerate/cdf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "stdlib/math/base/assert/is_nan.h"
2121

2222
/**
23-
* Evaluates the cumulative distribution function (CDF) for an degenerate distribution centered at `mu`.
23+
* Evaluates the CDF of a degenerate distribution centered at `mu`.
2424
*
2525
* @param x input value
2626
* @param mu constant value of distribution

0 commit comments

Comments
 (0)