Skip to content

Commit d5b0f41

Browse files
authored
chore: minor clean-up
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 0348270 commit d5b0f41

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ var i;
126126
for ( i = 0; i < 10; i++ ) {
127127
mu = uniform( 0.0, 10.0 );
128128
x = uniform( mu, mu + 10.0 );
129-
c = uniform( EPS, 10.0 + EPS );
129+
c = uniform( EPS, 10.0 );
130130
y = pdf( x, mu, c );
131131
console.log( 'x: %d, µ: %d, c: %d, f(x;µ,c): %d', x, mu, c, y );
132132
}
@@ -164,7 +164,7 @@ for ( i = 0; i < 10; i++ ) {
164164

165165
#### stdlib_base_dists_levy_pdf( x, mu, c )
166166

167-
Returns the [probability density][pdf] for a [Lévy][levy-distribution] distribution with input value `x`, location parameter `mu` and scale parameter `c`.
167+
Evaluates the [probability density][pdf] for a [Lévy][levy-distribution] distribution with input value `x`, location parameter `mu`, and scale parameter `c`.
168168

169169
```c
170170
double out = stdlib_base_dists_levy_pdf( 2.0, 0.0, 1.0 );
@@ -220,7 +220,7 @@ int main( void ) {
220220
for ( i = 0; i < 25; i++ ) {
221221
mu = random_uniform( 0.0, 10.0 );
222222
x = random_uniform( mu, mu + 10.0 );
223-
c = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 + STDLIB_CONSTANT_FLOAT64_EPS );
223+
c = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
224224
y = stdlib_base_dists_levy_pdf( x, mu, c );
225225
printf( "x: %lf, mu: %lf, c: %lf, f(x;mu,c): %lf\n", x, mu, c, y );
226226
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5454
c = new Float64Array( len );
5555
for ( i = 0; i < len; i++ ) {
5656
mu[ i ] = uniform( -10.0, 10.0 );
57-
x[ i ] = uniform( mu[ i ], mu[ i ] + 40.0 );
58-
c[ i ] = uniform( EPS, 5.0 + EPS );
57+
x[ i ] = uniform( mu[ i ], 40.0 );
58+
c[ i ] = uniform( EPS, 5.0 );
5959
}
6060

6161
b.tic();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int main( void ) {
3636
for ( i = 0; i < 25; i++ ) {
3737
mu = random_uniform( 0.0, 10.0 );
3838
x = random_uniform( mu, mu + 10.0 );
39-
c = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 + STDLIB_CONSTANT_FLOAT64_EPS );
39+
c = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
4040
y = stdlib_base_dists_levy_pdf( x, mu, c );
4141
printf( "x: %lf, mu: %lf, c: %lf, f(x;mu,c): %lf\n", x, mu, c, y );
4242
}

0 commit comments

Comments
 (0)