Skip to content

Commit 09ffbad

Browse files
authored
chore: apply suggestions from code review
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 05bd15f commit 09ffbad

File tree

4 files changed

+9
-25
lines changed

4 files changed

+9
-25
lines changed

lib/node_modules/@stdlib/stats/base/dists/normal/skewness/README.md

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

157157
#### stdlib_base_dists_normal_skewness( mu, sigma )
158158

159-
Evaluates the skewness for a normal distribution with mean `mu` and standard deviation `sigma`.
159+
Returns the skewness for a normal distribution with mean `mu` and standard deviation `sigma`.
160160

161161
```c
162162
double out = stdlib_base_dists_normal_skewness( 0.0, 1.0 );
@@ -201,8 +201,8 @@ static double random_uniform( const double min, const double max ) {
201201
}
202202
203203
int main( void ) {
204-
double mu;
205204
double sigma;
205+
double mu;
206206
double y;
207207
int i;
208208

lib/node_modules/@stdlib/stats/base/dists/normal/skewness/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ static double random_uniform( const double min, const double max ) {
2626
}
2727

2828
int main( void ) {
29+
double sigma;
2930
double mu;
30-
double sigma;
31-
double y;
32-
int i;
31+
double y;
32+
int i;
3333

3434
for ( i = 0; i < 10; i++ ) {
3535
mu = random_uniform( -5.0, 5.0 );

lib/node_modules/@stdlib/stats/base/dists/normal/skewness/include/stdlib/stats/base/dists/normal/skewness.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
* Evaluates the skewness for a normal distribution with mean `mu` and standard deviation `sigma`.
30+
* Returns the skewness for a normal distribution with mean `mu` and standard deviation `sigma`.
3131
*/
3232
double stdlib_base_dists_normal_skewness( const double mu, const double sigma );
3333

lib/node_modules/@stdlib/stats/base/dists/normal/skewness/src/main.c

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,13 @@
2222
/**
2323
* Returns the skewness for a normal distribution with mean `mu` and standard deviation `sigma`.
2424
*
25-
* @param mu mean of the distribution
26-
* @param sigma standard deviation of the distribution
27-
* @return skewness of the normal distribution
25+
* @param mu mean
26+
* @param sigma standard deviation
27+
* @return skewness
2828
*
2929
* @example
3030
* double y = stdlib_base_dists_normal_skewness( 0.0, 1.0 );
3131
* // returns 0.0
32-
*
33-
* @example
34-
* double y = stdlib_base_dists_normal_skewness( 5.0, 3.0 );
35-
* // returns 0.0
36-
*
37-
* @example
38-
* double y = stdlib_base_dists_normal_skewness( NAN, 1.0 );
39-
* // returns NaN
40-
*
41-
* @example
42-
* double y = stdlib_base_dists_normal_skewness( 0.0, NAN );
43-
* // returns NaN
44-
*
45-
* @example
46-
* double y = stdlib_base_dists_normal_skewness( 0.0, 0.0 );
47-
* // returns NaN
4832
*/
4933
double stdlib_base_dists_normal_skewness( const double mu, const double sigma ) {
5034
if (

0 commit comments

Comments
 (0)