Skip to content

Commit 30f9a5f

Browse files
authored
chore: address commit comments
PR-URL: #6192 Closes: #5431 Reviewed-by: Philipp Burckhardt <[email protected]> Reviewed-by: Harsh <[email protected]> Signed-off-by: MANI <[email protected]>
1 parent 1b00511 commit 30f9a5f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

Lines changed: 3 additions & 3 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:
@@ -214,9 +214,9 @@ static double random_uniform( const double min, const double max ) {
214214
215215
int main( void ) {
216216
double gamma;
217-
double x;
218217
double x0;
219218
double y;
219+
double x;
220220
int i;
221221
222222
for ( i = 0; i < 25; i++ ) {

lib/node_modules/@stdlib/stats/base/dists/cauchy/cdf/benchmark/benchmark.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ var pkg = require( './../package.json' ).name;
3232

3333
// VARIABLES //
3434

35-
var logcdf = tryRequire( resolve( __dirname, './../lib/native.js' ) );
35+
var cdf = tryRequire( resolve( __dirname, './../lib/native.js' ) );
3636
var opts = {
37-
'skip': ( logcdf instanceof Error )
37+
'skip': ( cdf instanceof Error )
3838
};
3939

4040

@@ -60,7 +60,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
6060

6161
b.tic();
6262
for ( i = 0; i < b.iterations; i++ ) {
63-
y = logcdf( x[ i % len ], x0[ i % len ], gamma[ i % len ] );
63+
y = cdf( x[ i % len ], x0[ i % len ], gamma[ i % len ] );
6464
if ( isnan( y ) ) {
6565
b.fail( 'should not return NaN' );
6666
}

lib/node_modules/@stdlib/stats/base/dists/cauchy/cdf/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ static double random_uniform( const double min, const double max ) {
2727

2828
int main( void ) {
2929
double gamma;
30-
double x;
3130
double x0;
3231
double y;
32+
double x;
3333
int i;
3434

3535
for ( i = 0; i < 25; i++ ) {

lib/node_modules/@stdlib/stats/base/dists/cauchy/cdf/include/stdlib/stats/base/dists/cauchy/cdf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
* Evaluates the cumulative distribution function (CDF) for a Weibull distribution with shape parameter `k` and scale parameter `lambda` at a value `x`.
30+
* Evaluates the cumulative distribution function (CDF) for a Cauchy distribution with location parameter `x0` and scale parameter `gamma` at a value `x`.
3131
*/
3232
double stdlib_base_dists_cauchy_cdf( const double x, const double x0, const double gamma );
3333

0 commit comments

Comments
 (0)