Skip to content

Commit 94ede07

Browse files
committed
feat: add reamde file
1 parent a4de37f commit 94ede07

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

  • lib/node_modules/@stdlib/stats/base/dists/beta/cdf

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ F(x;\alpha,\beta) = \frac{\mathop{\mathrm{Beta}}(x;\alpha,\beta)}{\mathop{\mathr
3333
```
3434

3535
<!-- <div class="equation" align="center" data-raw-text="F(x;\alpha,\beta) = \frac{\operatorname{Beta}(x;\alpha,\beta)}{\operatorname{Beta}(\alpha,\beta)}" data-equation="eq:beta_cdf">
36-
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@51534079fef45e990850102147e8945fb023d1d0/lib/node_modules/@stdlib/stats/base/dists/beta/cdf/docs/img/equation_beta_cdf.svg" alt="Cumulative distribution function for a beta distribution.">
37-
<br>
36+
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@51534079fef45e990850102147e8945fb023d1d0/lib/node_modules/@stdlib/stats/base/dists/beta/cdf/docs/img/equation_beta_cdf.svg" alt="Cumulative distribution function for a beta distribution.">
37+
<br>
3838
</div> -->
3939

4040
<!-- </equation> -->
@@ -147,7 +147,7 @@ var EPS = require( '@stdlib/constants/float64/eps' );
147147
var cdf = require( '@stdlib/stats/base/dists/beta/cdf' );
148148

149149
var opts = {
150-
'dtype': 'float64'
150+
'dtype': 'float64'
151151
};
152152
var alpha = uniform( 10, EPS, 5.0, opts );
153153
var beta = uniform( 10, EPS, 5.0, opts );
@@ -231,24 +231,24 @@ element and another before the `/section` close. -->
231231
#include <stdio.h>
232232
233233
static double random_uniform( const double min, const double max ) {
234-
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
235-
return min + ( v*(max-min) );
234+
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
235+
return min + ( v*(max-min) );
236236
}
237237
238238
int main( void ) {
239-
double alpha;
240-
double beta;
241-
double x;
242-
double y;
243-
int i;
244-
245-
for ( i = 0; i < 10; i++ ) {
246-
alpha = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 5.0 );
247-
beta = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 5.0 );
248-
x = random_uniform( 0.0, 1.0 );
249-
y = stdlib_base_dists_beta_cdf( x, alpha, beta );
250-
printf( "x: %lf, α: %lf, β: %lf, F(x;α,β): %lf\n", x, alpha, beta, y );
251-
}
239+
double alpha;
240+
double beta;
241+
double x;
242+
double y;
243+
int i;
244+
245+
for ( i = 0; i < 10; i++ ) {
246+
alpha = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 5.0 );
247+
beta = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 5.0 );
248+
x = random_uniform( 0.0, 1.0 );
249+
y = stdlib_base_dists_beta_cdf( x, alpha, beta );
250+
printf( "x: %lf, α: %lf, β: %lf, F(x;α,β): %lf\n", x, alpha, beta, y );
251+
}
252252
}
253253
```
254254

0 commit comments

Comments
 (0)