Skip to content

Commit 99670a0

Browse files
authored
chore: apply suggestions from code review
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 4f07e8e commit 99670a0

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

lib/node_modules/@stdlib/stats/base/dists/chisquare/mgf/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,9 @@ int main( void ) {
232232
for ( i = 0; i < 10; i++ ) {
233233
t = random_uniform( -0.5, 0.4 );
234234
k = random_uniform( 0.1, 10.0 );
235-
236235
result = stdlib_base_dists_chisquare_mgf( t, k );
237-
238236
printf( "t: %lf, k: %lf, M_X(t;k): %lf \n", t, k, result );
239237
}
240-
241-
return 0;
242238
}
243239
```
244240

lib/node_modules/@stdlib/stats/base/dists/chisquare/mgf/examples/c/example.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ int main( void ) {
3434
for ( i = 0; i < 10; i++ ) {
3535
t = random_uniform( -0.5, 0.4 );
3636
k = random_uniform( 0.1, 10.0 );
37-
3837
result = stdlib_base_dists_chisquare_mgf( t, k );
39-
4038
printf( "t: %lf, k: %lf, M_X(t;k): %lf \n", t, k, result );
4139
}
42-
43-
return 0;
4440
}

lib/node_modules/@stdlib/stats/base/dists/chisquare/mgf/src/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
#include "stdlib/math/base/special/pow.h"
2121

2222
/**
23-
* Evaluates the moment-generating function (MGF) for a chi-squared distribution
24-
* with degrees of freedom `k` at a value `t`.
23+
* Evaluates the moment-generating function (MGF) for a chi-squared distribution with degrees of freedom `k` at a value `t`.
2524
*
2625
* @param t input value
2726
* @param k degrees of freedom (must be non-negative)

0 commit comments

Comments
 (0)