Skip to content

Commit 38ef4f3

Browse files
authored
chore: add empty lines and update printf format
1 parent 9d9dbb5 commit 38ef4f3

File tree

1 file changed

+13
-1
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/laplace/quantile

1 file changed

+13
-1
lines changed

lib/node_modules/@stdlib/stats/base/dists/laplace/quantile/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,34 +191,46 @@ double stdlib_base_dists_laplace_quantile( const double p, const double mu, cons
191191
```
192192
193193
</section>
194+
194195
<!-- /.usage -->
196+
195197
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
198+
196199
<section class="notes">
200+
197201
</section>
202+
198203
<!-- /.notes -->
204+
199205
<!-- C API usage examples. -->
206+
200207
<section class="examples">
208+
201209
### Examples
210+
202211
```c
203212
#include "stdlib/stats/base/dists/laplace/quantile.h"
204213
#include <stdlib.h>
205214
#include <stdio.h>
215+
206216
static double random_uniform( const double min, const double max ) {
207217
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
208218
return min + ( v*(max-min) );
209219
}
220+
210221
int main( void ) {
211222
double mu;
212223
double b;
213224
double p;
214225
double y;
215226
int i;
227+
216228
for ( i = 0; i < 25; i++ ) {
217229
mu = random_uniform( -5.0, 5.0 );
218230
b = random_uniform( 0.0, 20.0 );
219231
p = random_uniform( 0.0, 1.0 );
220232
y = stdlib_base_dists_laplace_quantile( p, mu, b );
221-
printf( "p: %lf, µ: %lf, b: %lf, quantile(X;x,µ,b): %lf\n", p, mu, b, y );
233+
printf( "p: %lf, µ: %lf, b: %lf, Q(p;µ,b): %lf\n", p, mu, b, y );
222234
}
223235
}
224236
```

0 commit comments

Comments
 (0)