Skip to content

Commit 1e0d364

Browse files
chore: stuff from code review
1 parent 437ee79 commit 1e0d364

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ static double random_uniform( const double min, const double max ) {
218218
}
219219
220220
int main( void ) {
221-
int32_t k;
222221
double lambda;
222+
int32_t k;
223223
double y;
224224
int i;
225225

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ static double random_uniform( const double min, const double max ) {
2929
}
3030

3131
int main( void ) {
32-
int32_t k;
3332
double lambda;
33+
int32_t k;
3434
double y;
3535
int i;
3636

lib/node_modules/@stdlib/stats/base/dists/erlang/kurtosis/include/stdlib/stats/base/dists/erlang/kurtosis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern "C" {
2929
#endif
3030

3131
/**
32-
* Returns the excess kurtosis for a erlang distribution with shape parameter `k` and rate parameter `lambda`.
32+
* Returns the excess kurtosis for an Erlang distribution with shape parameter `k` and rate parameter `lambda`.
3333
*/
3434
double stdlib_base_dists_erlang_kurtosis( const int32_t k, const double lambda );
3535

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,21 @@
2020
#include "stdlib/math/base/assert/is_positive_integer.h"
2121
#include "stdlib/math/base/assert/is_nan.h"
2222
#include <stdint.h>
23+
2324
/**
24-
* Returns the excess kurtosis for a erlang distribution with shape parameter `k` and rate parameter `lambda`.
25+
* Returns the excess kurtosis for an Erlang distribution with shape parameter `k` and rate parameter `lambda`.
2526
*
2627
* @param k shape parameter
2728
* @param lambda rate parameter
2829
* @return excess kurtosis
2930
*
3031
* @example
31-
* double y = stdlib_base_dists_beta_kurtosis( 1.0, 1.0 );
32+
* double y = stdlib_base_dists_beta_kurtosis( 1, 1.0 );
3233
* // returns 6.0
3334
*/
3435
double stdlib_base_dists_erlang_kurtosis( const int32_t k, const double lambda ) {
3536
if (
36-
!stdlib_base_is_positive_integer( k ) ||
37+
k > 0.0 ||
3738
stdlib_base_is_nan( lambda ) ||
3839
lambda <= 0.0
3940
) {

0 commit comments

Comments
 (0)