Skip to content

Commit cd3fc98

Browse files
feat(add c implementation): add stats/base/dists/beta/stdev
1 parent 65211fb commit cd3fc98

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,14 @@ int main( void ) {
240240

241241
<!-- /.c -->
242242

243+
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
244+
245+
<section class="references">
246+
247+
</section>
248+
249+
<!-- /.references -->
250+
243251
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
244252

245253
<section class="related">

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* Returns the standard deviation of a beta distribution.
2525
*
2626
* @param alpha first shape parameter
27-
* @param beta second shape parameter
28-
* @return standard deviation
27+
* @param beta second shape parameter
28+
* @return standard deviation
2929
*
3030
* @example
3131
* double y = stdlib_base_beta_stdev( 1.0, 1.0 );
@@ -35,7 +35,7 @@ double stdlib_base_dists_beta_stdev( const double alpha, const double beta ) {
3535
double apb;
3636
double out;
3737
if ( alpha <= 0.0 || beta <= 0.0 ) {
38-
return 0.0/0.0; //NaN
38+
return 0.0/0.0; // NaN
3939
}
4040
apb = alpha + beta;
4141
out = stdlib_base_sqrt( ( alpha * beta ) / ( apb + 1.0 ) );

0 commit comments

Comments
 (0)