File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
lib/node_modules/@stdlib/stats/base/dists/degenerate/entropy Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ Returns the entropy of a degenerate distribution with constant value `mu`.
144144
145145``` c
146146double y = stdlib_base_dists_degenerate_entropy( 0.1 );
147- // returns ~ 0.0
147+ // returns 0.0
148148```
149149
150150The 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```
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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*/
3232double stdlib_base_dists_degenerate_entropy ( const double mu ) {
3333 if ( stdlib_base_is_nan ( mu ) ) {
You can’t perform that action at this time.
0 commit comments