Skip to content

Commit 58de046

Browse files
authored
chore: apply suggestions from code review
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 33ef114 commit 58de046

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/node_modules/@stdlib/stats/base/dists/erlang/mean/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int main( void ) {
227227
int i;
228228
229229
for ( i = 0; i < 25; i++ ) {
230-
k = stdlib_base_round(random_uniform( 0.0, 10.0 ));
230+
k = stdlib_base_round( random_uniform( 0.0, 10.0 ) );
231231
lambda = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 10.0 );
232232
y = stdlib_base_dists_erlang_mean( k, lambda );
233233
printf( "k: %d, λ: %lf, E(X;k,λ): %lf\n", k, lambda, y );

lib/node_modules/@stdlib/stats/base/dists/erlang/mean/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main( void ) {
3535
int i;
3636

3737
for ( i = 0; i < 25; i++ ) {
38-
k = stdlib_base_round(random_uniform( 0.0, 10.0 ));
38+
k = stdlib_base_round( random_uniform( 0.0, 10.0 ) );
3939
lambda = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 10.0 );
4040
y = stdlib_base_dists_erlang_mean( k, lambda );
4141
printf( "k: %d, λ: %lf, E(X;k,λ): %lf\n", k, lambda, y );

lib/node_modules/@stdlib/stats/base/dists/erlang/mean/src/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "stdlib/math/base/assert/is_nan.h"
2121
#include <stdint.h>
2222

23-
2423
/**
2524
* Returns the expected value of an Erlang distribution.
2625
*
@@ -29,7 +28,7 @@
2928
* @return evaluated value
3029
*
3130
* @example
32-
* double y = stdlib_base_erlang_mean( 1, 1.0 );
31+
* double y = stdlib_base_dists_erlang_mean( 1, 1.0 );
3332
* // returns 1.0
3433
*/
3534
double stdlib_base_dists_erlang_mean( const int32_t k, const double lambda ) {

0 commit comments

Comments
 (0)