Skip to content

Commit 1c12892

Browse files
chore: stuff from code review
1 parent 6c2ca8a commit 1c12892

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Returns the entropy of a degenerate distribution with constant value `mu`.
144144

145145
```c
146146
double y = stdlib_base_dists_degenerate_entropy( 0.1 );
147-
// returns ~0.0
147+
// returns 0.0
148148
```
149149

150150
The function accepts the following arguments:
@@ -191,7 +191,7 @@ int main( void ) {
191191
for ( i = 0; i < 10; i++ ) {
192192
mu = random_uniform( 0.0, 1.0 );
193193
y = stdlib_base_dists_degenerate_entropy( mu );
194-
printf( "µ: %1f, H(X;µ): %lf\n", mu , y );
194+
printf( "µ: %1f. H(X;µ): %lf\n", mu , y );
195195
}
196196
}
197197
```

lib/node_modules/@stdlib/stats/base/dists/degenerate/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 < 10; i++ ) {
3434
mu = random_uniform( 0.0, 1.0 );
3535
y = stdlib_base_dists_degenerate_entropy( mu );
36-
printf( "µ: %1f, H(X;µ): %lf\n", mu , y );
36+
printf( "µ: %1f. H(X;µ): %lf\n", mu , y );
3737
}
3838
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
* Returns the entropy of a degenerate distribution with constant value `mu`.
2424
*
2525
* @param mu constant value of distribution
26-
* @returns entropy
26+
* @return entropy
2727
*
2828
* @example
2929
* double y = stdlib_base_dists_degenerate_entropy( 0.1 );
30-
* // returns ~0.0
30+
* // returns 0.0
3131
*/
3232
double stdlib_base_dists_degenerate_entropy( const double mu ) {
3333
if ( stdlib_base_is_nan( mu ) ) {

0 commit comments

Comments
 (0)