Skip to content

Commit 2d47552

Browse files
authored
chore: minor clean-up
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 5358c93 commit 2d47552

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ for ( i = 0; i < 10; i++ ) {
170170

171171
Evaluates the moment-generating function ([MGF][mgf]) for a [Poisson][poisson-distribution] distribution with parameter `lambda` (mean).
172172

173-
174173
```c
175174
double out = stdlib_base_dists_poisson_mgf( 1.0, 1.5 );
176175
// returns ~13.163
@@ -214,16 +213,16 @@ static double random_uniform( const double min, const double max ) {
214213
}
215214
216215
int main( void ) {
217-
double t;
218216
double lambda;
217+
double t;
219218
double y;
220219
int i;
221220
222221
for ( i = 0; i < 25; i++ ) {
223222
t = random_uniform( -2.0, 2.0 );
224223
lambda = random_uniform( 0.1, 10.0 );
225224
y = stdlib_base_dists_poisson_mgf( t, lambda );
226-
printf( "t: %lf, lambda: %lf, MGF(t;lambda): %lf\n", t, lambda, y );
225+
printf( "t: %lf, λ: %lf, M_X(t;λ): %lf\n", t, lambda, y );
227226
}
228227
}
229228
```

lib/node_modules/@stdlib/stats/base/dists/poisson/mgf/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include <sys/time.h>
2019
#include "stdlib/stats/base/dists/poisson/mgf.h"
20+
#include <sys/time.h>
2121
#include <math.h>
2222
#include <stdio.h>
2323
#include <stdlib.h>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ int main( void ) {
3535
t = random_uniform( -2.0, 2.0 );
3636
lambda = random_uniform( 0.1, 10.0 );
3737
y = stdlib_base_dists_poisson_mgf( t, lambda );
38-
printf( "t: %lf, lambda: %lf, MGF(t;lambda): %lf\n", t, lambda, y );
38+
printf( "t: %lf, λ: %lf, M_X(t;λ): %lf\n", t, lambda, y );
3939
}
4040
}

0 commit comments

Comments
 (0)