Skip to content

Commit 84a04f3

Browse files
chore: address commit comments for bernulli/skewness
PR-URL: #5082 Closes: #5069 Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent 0ee8494 commit 84a04f3

File tree

6 files changed

+88
-88
lines changed

6 files changed

+88
-88
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ int main( void ) {
201201
for ( i = 0; i < 10; i++ ) {
202202
p = random_uniform( 0.0, 1.0 );
203203
y = stdlib_base_dists_bernoulli_skewness( p );
204-
printf( "x: %lf , skew(X;p): %lf\n", p , y );
204+
printf( "x: %lf, skew(X;p): %lf\n", p, y );
205205
}
206206
}
207207
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ int main( void ) {
3333
for ( i = 0; i < 10; i++ ) {
3434
p = random_uniform( 0.0, 1.0 );
3535
y = stdlib_base_dists_bernoulli_skewness( p );
36-
printf( "x: %lf , skew(X;p): %lf\n", p , y );
36+
printf( "x: %lf, skew(X;p): %lf\n", p, y );
3737
}
3838
}

lib/node_modules/@stdlib/stats/base/dists/bernoulli/skewness/include/stdlib/stats/base/dists/bernoulli/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-
* Returns the skewness of a Bernoulli distribution with success probability 'p'.
30+
* Returns the skewness of a Bernoulli distribution with success probability `p`.
3131
*/
3232
double stdlib_base_dists_bernoulli_skewness( const double p );
3333

Lines changed: 82 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,85 @@
11
{
2-
"options": {
2+
"options": {
3+
"task": "build",
4+
"wasm": false
5+
},
6+
"fields": [
7+
{
8+
"field": "src",
9+
"resolve": true,
10+
"relative": true
11+
},
12+
{
13+
"field": "include",
14+
"resolve": true,
15+
"relative": true
16+
},
17+
{
18+
"field": "libraries",
19+
"resolve": false,
20+
"relative": false
21+
},
22+
{
23+
"field": "libpath",
24+
"resolve": true,
25+
"relative": false
26+
}
27+
],
28+
"confs": [
29+
{
330
"task": "build",
4-
"wasm": false
31+
"wasm": false,
32+
"src": [
33+
"./src/main.c"
34+
],
35+
"include": [
36+
"./include"
37+
],
38+
"libraries": [],
39+
"libpath": [],
40+
"dependencies": [
41+
"@stdlib/math/base/napi/unary",
42+
"@stdlib/math/base/assert/is-nan",
43+
"@stdlib/constants/float64/pinf",
44+
"@stdlib/constants/float64/ninf",
45+
"@stdlib/math/base/special/sqrt"
46+
]
47+
},
48+
{
49+
"task": "benchmark",
50+
"wasm": false,
51+
"src": [
52+
"./src/main.c"
53+
],
54+
"include": [
55+
"./include"
56+
],
57+
"libraries": [],
58+
"libpath": [],
59+
"dependencies": [
60+
"@stdlib/math/base/assert/is-nan",
61+
"@stdlib/constants/float64/pinf",
62+
"@stdlib/constants/float64/ninf",
63+
"@stdlib/math/base/special/sqrt"
64+
]
565
},
6-
"fields": [
7-
{
8-
"field": "src",
9-
"resolve": true,
10-
"relative": true
11-
},
12-
{
13-
"field": "include",
14-
"resolve": true,
15-
"relative": true
16-
},
17-
{
18-
"field": "libraries",
19-
"resolve": false,
20-
"relative": false
21-
},
22-
{
23-
"field": "libpath",
24-
"resolve": true,
25-
"relative": false
26-
}
27-
],
28-
"confs": [
29-
{
30-
"task": "build",
31-
"wasm": false,
32-
"src": [
33-
"./src/main.c"
34-
],
35-
"include": [
36-
"./include"
37-
],
38-
"libraries": [],
39-
"libpath": [],
40-
"dependencies": [
41-
"@stdlib/math/base/napi/unary",
42-
"@stdlib/math/base/assert/is-nan",
43-
"@stdlib/constants/float64/pinf",
44-
"@stdlib/constants/float64/ninf",
45-
"@stdlib/math/base/special/sqrt"
46-
]
47-
},
48-
{
49-
"task": "benchmark",
50-
"wasm": false,
51-
"src": [
52-
"./src/main.c"
53-
],
54-
"include": [
55-
"./include"
56-
],
57-
"libraries": [],
58-
"libpath": [],
59-
"dependencies": [
60-
"@stdlib/math/base/assert/is-nan",
61-
"@stdlib/constants/float64/pinf",
62-
"@stdlib/constants/float64/ninf",
63-
"@stdlib/math/base/special/sqrt"
64-
]
65-
},
66-
{
67-
"task": "examples",
68-
"wasm": false,
69-
"src": [
70-
"./src/main.c"
71-
],
72-
"include": [
73-
"./include"
74-
],
75-
"libraries": [],
76-
"libpath": [],
77-
"dependencies": [
78-
"@stdlib/math/base/assert/is-nan",
79-
"@stdlib/constants/float64/pinf",
80-
"@stdlib/constants/float64/ninf",
81-
"@stdlib/math/base/special/sqrt"
82-
]
83-
}
84-
]
85-
}
66+
{
67+
"task": "examples",
68+
"wasm": false,
69+
"src": [
70+
"./src/main.c"
71+
],
72+
"include": [
73+
"./include"
74+
],
75+
"libraries": [],
76+
"libpath": [],
77+
"dependencies": [
78+
"@stdlib/math/base/assert/is-nan",
79+
"@stdlib/constants/float64/pinf",
80+
"@stdlib/constants/float64/ninf",
81+
"@stdlib/math/base/special/sqrt"
82+
]
83+
}
84+
]
85+
}

lib/node_modules/@stdlib/stats/base/dists/bernoulli/skewness/src/addon.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 "stdlib/math/base/napi/unary.h"
2019
#include "stdlib/stats/base/dists/bernoulli/skewness.h"
20+
#include "stdlib/math/base/napi/unary.h"
2121

2222
// cppcheck-suppress shadowFunction
2323
STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_dists_bernoulli_skewness )

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
#include "stdlib/constants/float64/ninf.h"
2424

2525
/**
26-
* Returns the skewness of a Bernoulli distribution with success probability 'p'.
26+
* Returns the skewness of a Bernoulli distribution with success probability `p`.
2727
*
2828
* @param p success probability
29-
* @returns skewness
29+
* @return skewness
3030
*
3131
* @example
3232
* double y = stdlib_base_dists_bernoulli_skewness( 0.1 );

0 commit comments

Comments
 (0)