Skip to content

Commit d554246

Browse files
chore: stuff from code review
1 parent 77162b5 commit d554246

File tree

6 files changed

+7
-13
lines changed

6 files changed

+7
-13
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Evaluates the natural logarithm of the (CDF) of a degenerate distribution center
146146

147147
```c
148148
double y = stdlib_base_dists_degenerate_logcdf( 2.0, 3.0 );
149-
// returns ~-Infinity
149+
// returns -Infinity
150150
```
151151

152152
The function accepts the following arguments:
@@ -197,7 +197,7 @@ int main( void ) {
197197
x = stdlib_base_round( random_uniform( 0.0, 10.0 ) );
198198
mu = stdlib_base_round( random_uniform( 0.0, 10.0 ) );
199199
y = stdlib_base_dists_degenerate_logcdf( x, mu );
200-
printf( "x: %1f, µ: %1f, ln(F(x;µ)): %lf\n", x, mu , y );
200+
printf( "x: %1f. µ: %1f. ln(F(x;µ)): %lf\n", x, mu , y );
201201
}
202202
}
203203
```

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@ bench( pkg, function benchmark( b ) {
3939

4040
len = 100;
4141
x = new Float64Array( len );
42-
for ( i = 0; i < len; i++ ) {
43-
x[ i ] = uniform( -100.0, 0.0 );
44-
}
4542
mu = new Float64Array( len );
4643
for ( i = 0; i < len; i++ ) {
44+
x[ i ] = uniform( -100.0, 0.0 );
4745
mu[ i ] = uniform( -50.0, 50.0 );
4846
}
4947

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4949

5050
len = 100;
5151
x = new Float64Array( len );
52-
for ( i = 0; i < len; i++ ) {
53-
x[ i ] = uniform( -100.0, 0.0 );
54-
}
5552
mu = new Float64Array( len );
5653
for ( i = 0; i < len; i++ ) {
54+
x[ i ] = uniform( -100.0, 0.0 );
5755
mu[ i ] = uniform( -50.0, 50.0 );
5856
}
5957

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

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

102102
for ( i = 0; i < 100; i++ ) {
103103
x[ i ] = random_uniform( -100.0, 0.0 );
104-
}
105-
for ( i = 0; i < 100; i++ ) {
106104
mu[ i ] = random_uniform( -50.0, 50.0 );
107105
}
108106

lib/node_modules/@stdlib/stats/base/dists/degenerate/logcdf/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ int main( void ) {
3636
x = stdlib_base_round( random_uniform( 0.0, 10.0 ) );
3737
mu = stdlib_base_round( random_uniform( 0.0, 10.0 ) );
3838
y = stdlib_base_dists_degenerate_logcdf( x, mu );
39-
printf( "x: %1f, µ: %1f, ln(F(x;µ)): %lf\n", x, mu , y );
39+
printf( "x: %1f. µ: %1f. ln(F(x;µ)): %lf\n", x, mu , y );
4040
}
4141
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
*
2626
* @param x input value
2727
* @param mu constant value of distribution
28-
* @returns evaluated logCDF
28+
* @return evaluated logCDF
2929
*
3030
* @example
3131
* double y = stdlib_base_dists_degenerate_logcdf( 2.0, 3.0 );
32-
* // returns ~-Infinity
32+
* // returns -Infinity
3333
*/
3434
double stdlib_base_dists_degenerate_logcdf( const double x, const double mu ) {
3535
if ( stdlib_base_is_nan( x ) || stdlib_base_is_nan( mu ) ) {

0 commit comments

Comments
 (0)