Skip to content

Commit 49c997a

Browse files
authored
Fix Address commit comments
Signed-off-by: MANI <[email protected]>
1 parent de19c22 commit 49c997a

File tree

1 file changed

+5
-5
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/cauchy/cdf

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ for ( i = 0; i < 10; i++ ) {
170170
Evaluates the [cumulative distribution function][cdf] (CDF) for a [Cauchy][cauchy-distribution] distribution with parameters `x0` (location parameter) and `gamma > 0` (scale parameter).
171171

172172
```c
173-
double out = stdlib_base_dists_cauchy_cdf( 0.5, 0.0, 2.0 );
174-
// returns ~0.333
173+
double out = stdlib_base_dists_cauchy_cdf( 4.0, 0.0, 2.0 );
174+
// returns ~0.852
175175
```
176176

177177
The function accepts the following arguments:
@@ -213,11 +213,11 @@ static double random_uniform( const double min, const double max ) {
213213
}
214214
215215
int main( void ) {
216-
double gamma;
216+
int i;
217217
double x;
218-
double x0;
219218
double y;
220-
int i;
219+
double x0;
220+
double gamma;
221221
222222
for ( i = 0; i < 25; i++ ) {
223223
x = random_uniform( 0.0, 10.0 );

0 commit comments

Comments
 (0)