Skip to content

Commit 16b6c0a

Browse files
authored
chore: apply suggestions from code review
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 9c985e2 commit 16b6c0a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/node_modules/@stdlib/stats/base/dists/beta/variance/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ double out = stdlib_base_dists_beta_variance( 1.0, 1.0 );
182182
The function accepts the following arguments:
183183

184184
- **alpha**: `[in] double` first shape parameter.
185-
- **beta**: `[in] double` second shape parameter.
185+
- **beta**: `[in] double` second shape parameter.
186186

187187
```c
188188
double stdlib_base_dists_beta_variance( const double alpha, const double beta );
@@ -222,7 +222,6 @@ int main( void ) {
222222
double beta;
223223
double y;
224224
int i;
225-
226225
for ( i = 0; i < 25; i++ ) {
227226
alpha = random_uniform( 0.0, 10.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
228227
beta = random_uniform( 0.0, 10.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;

lib/node_modules/@stdlib/stats/base/dists/beta/variance/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ double stdlib_base_dists_beta_variance( const double alpha, const double beta )
3434
double apb;
3535
double out;
3636
if ( alpha <= 0.0 || beta <= 0.0 ) {
37-
return 0.0/0.0;// NaN
37+
return 0.0/0.0; // NaN
3838
}
3939
apb = alpha + beta;
4040
out = alpha * beta;

0 commit comments

Comments
 (0)