Skip to content

Commit 78cdb2c

Browse files
refactor: updates file with uniform and values
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: passed - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: passed - task: run_c_examples status: failed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: ---
1 parent be3dd63 commit 78cdb2c

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ for ( i = 0; i < 10; i++ ) {
173173

174174
#### stdlib_base_dists_levy_quantile( p, mu, c )
175175

176-
Returns the [quantile function][quantile-function] for a [Lévy][levy-distribution] distribution with parameters `mu` (location parameter) and `c` (scale parameter) at a probability `p`.
176+
Returns the quantile function for a Lévy distribution with location parameter `mu` and scale parameter `c`.
177177

178178
```c
179179
double out = stdlib_base_dists_levy_quantile( 1.1, 0.0, 1.0 );

lib/node_modules/@stdlib/stats/base/dists/levy/quantile/benchmark/benchmark.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var Float64Array = require( '@stdlib/array/float64' );
25-
var randu = require( '@stdlib/random/base/randu' );
25+
var uniform = require( '@stdlib/random/base/uniform' );
2626
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2727
var EPS = require( '@stdlib/constants/float64/eps' );
2828
var pkg = require( './../package.json' ).name;
@@ -44,9 +44,9 @@ bench( pkg, function benchmark( b ) {
4444
mu = new Float64Array( len );
4545
c = new Float64Array( len );
4646
for ( i = 0; i < len; i++ ) {
47-
p[ i ] = randu();
48-
mu[ i ] = ( randu() * 20.0 ) - 10.0;
49-
c[ i ] = ( randu() * 5.0 ) + EPS;
47+
p[ i ] = uniform( 0.0, 1.0 );
48+
mu[ i ] = uniform( -10.0, 10.0 );
49+
c[ i ] = uniform( EPS, 5.0 );
5050
}
5151

5252
b.tic();
@@ -78,7 +78,7 @@ bench( pkg+':factory', function benchmark( b ) {
7878

7979
b.tic();
8080
for ( i = 0; i < b.iterations; i++ ) {
81-
p = randu();
81+
p = uniform( 0.0, 1.0 );
8282
y = myquantile( p );
8383
if ( isnan( y ) ) {
8484
b.fail( 'should not return NaN' );

lib/node_modules/@stdlib/stats/base/dists/levy/quantile/benchmark/benchmark.native.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
2525
var Float64Array = require( '@stdlib/array/float64' );
2626
var tryRequire = require( '@stdlib/utils/try-require' );
27-
var randu = require( '@stdlib/random/base/randu' );
27+
var uniform = require( '@stdlib/random/base/uniform' );
2828
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2929
var EPS = require( '@stdlib/constants/float64/eps' );
3030
var pkg = require( './../package.json' ).name;
@@ -53,9 +53,9 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5353
mu = new Float64Array( len );
5454
c = new Float64Array( len );
5555
for ( i = 0; i < len; i++ ) {
56-
p[ i ] = randu();
57-
mu[ i ] = ( randu() * 20.0 ) - 10.0;
58-
c[ i ] = ( randu() * 5.0 ) + EPS;
56+
p[ i ] = uniform( 0.0, 1.0 );
57+
mu[ i ] = uniform( -10.0, 10.0 );
58+
c[ i ] = uniform( EPS, 5.0 );
5959
}
6060

6161
b.tic();

lib/node_modules/@stdlib/stats/base/dists/levy/quantile/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ static double benchmark( void ) {
103103

104104
for ( i = 0; i < 100; i++ ) {
105105
p[ i ] = random_uniform( 0.0, 100.0 );
106-
mu[ i ] = random_uniform( 0.0, 100.0 ) - 50.0;
107-
c[ i ] = random_uniform( 0.0, 20.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
106+
mu[ i ] = random_uniform( -50.0, 50.0 );
107+
c[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
108108
}
109109

110110
t = tic();

lib/node_modules/@stdlib/stats/base/dists/levy/quantile/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ int main( void ) {
3333
int i;
3434

3535
for ( i = 0; i < 25; i++ ) {
36-
p = random_uniform( 0.0, 10.0 );
37-
mu = random_uniform( 0.0, 10.0 ) - 5.0;
38-
c = random_uniform( 0.0, 20.0 );
36+
p = random_uniform( 0.0, 1.0 );
37+
mu = random_uniform( 0.0, 10.0 );
38+
c = random_uniform( 0.0, 10.0 );
3939
y = stdlib_base_dists_levy_quantile( p, mu, c );
4040
printf( "p:%lf, µ: %lf, c: %lf, Q(p;µ,c): %lf\n", p, mu, c, y );
4141
}

lib/node_modules/@stdlib/stats/base/dists/levy/quantile/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@
5959
"libpath": [],
6060
"dependencies": [
6161
"@stdlib/math/base/assert/is-nan",
62-
"@stdlib/constants/float64/eps",
6362
"@stdlib/math/base/special/erfcinv",
6463
"@stdlib/constants/float64/ninf",
6564
"@stdlib/constants/float64/pinf",
66-
"@stdlib/constants/float64/eps"
65+
"@stdlib/constants/float64/eps",
66+
"@stdlib/random/base/uniform"
6767
]
6868
},
6969
{

lib/node_modules/@stdlib/stats/base/dists/levy/quantile/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
/**
2424
* Returns the quantile for a Lévy distribution with location `mu` and scale `c`.
2525
*
26-
* @param p input value
27-
* @param mu location parameter
28-
* @param c scale parameter
26+
* @param p input value
27+
* @param mu location parameter
28+
* @param c scale parameter
2929
* @return evaluated quantile function
3030
*
3131
* @example

0 commit comments

Comments
 (0)