Skip to content

Commit bd2164f

Browse files
authored
fix: Apply suggestions from code review
Signed-off-by: Vinit Pandit <[email protected]>
1 parent f97d5c5 commit bd2164f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lib/node_modules/@stdlib/stats/base/dists/rayleigh/entropy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ int main( void ) {
195195
for ( i = 0; i < 25; i++ ) {
196196
sigma = random_uniform( 0.0, 20.0 );
197197
y = stdlib_base_dists_rayleigh_entropy( sigma );
198-
printf( "σ: %lf, h(x;σ): %lf\n", sigma, y );
198+
printf( "σ: %lf, h(σ): %lf\n", sigma, y );
199199
}
200200
}
201201
```

lib/node_modules/@stdlib/stats/base/dists/rayleigh/entropy/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ int main( void ) {
3333
for ( i = 0; i < 25; i++ ) {
3434
sigma = random_uniform( 0.0, 20.0 );
3535
y = stdlib_base_dists_rayleigh_entropy( sigma );
36-
printf( "σ: %lf, h(x;σ): %lf\n", sigma, y );
36+
printf( "σ: %lf, h(σ): %lf\n", sigma, y );
3737
}
3838
}

lib/node_modules/@stdlib/stats/base/dists/rayleigh/entropy/src/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
* // returns ~3.139
3535
*/
3636
double stdlib_base_dists_rayleigh_entropy( const double sigma ) {
37-
double s2;
3837
if (
3938
stdlib_base_is_nan( sigma ) ||
4039
sigma <= 0.0

0 commit comments

Comments
 (0)