Skip to content

Commit 6f98770

Browse files
committed
Auto-generated commit
1 parent a558916 commit 6f98770

File tree

9 files changed

+40
-38
lines changed

9 files changed

+40
-38
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-07-06)
7+
## Unreleased (2024-07-07)
88

99
<section class="packages">
1010

@@ -74,6 +74,8 @@ A total of 7 people contributed to this release. Thank you to the following cont
7474

7575
<details>
7676

77+
- [`659f752`](https://github.com/stdlib-js/stdlib/commit/659f752db18317bf5fc237fdbcad0d74b61e1ed9) - **style:** add missing spaces _(by Philipp Burckhardt)_
78+
- [`a78f7d1`](https://github.com/stdlib-js/stdlib/commit/a78f7d1b859b6b1d7b0bc0ee4daf76789e3e0910) - **style:** add missing spaces _(by Philipp Burckhardt)_
7779
- [`9669982`](https://github.com/stdlib-js/stdlib/commit/966998214dc39efece0cbd557786bc5dde4adcb8) - **style:** resolve lint error _(by Athan Reines)_
7880
- [`352993d`](https://github.com/stdlib-js/stdlib/commit/352993db5c4a41180aa78951a0bc1c9faa8aefc4) - **docs:** improve examples of `stats/base/dists/studentized-range` _(by Rejoan Sardar, Philipp Burckhardt)_
7981
- [`cc5d91f`](https://github.com/stdlib-js/stdlib/commit/cc5d91fb3df5155821344d6fffbeef23f37e8153) - **style:** remove blank line [(#2339)](https://github.com/stdlib-js/stdlib/pull/2339) _(by stdlib-bot, Philipp Burckhardt)_

base/dists/cosine/cdf/lib/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var PI = require( '@stdlib/constants/float64/pi' );
4444
* // returns 1.0
4545
*
4646
* @example
47-
* var y = cdf( -0.9, 0.0, 1.0);
47+
* var y = cdf( -0.9, 0.0, 1.0 );
4848
* // returns ~0.0
4949
*
5050
* @example

base/dists/cosine/mgf/lib/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var PI_SQUARED = require( '@stdlib/constants/float64/pi-squared' );
4545
* // returns ~1.098
4646
*
4747
* @example
48-
* var y = mgf( -0.9, 0.0, 3.0);
48+
* var y = mgf( -0.9, 0.0, 3.0 );
4949
* // returns ~1.578
5050
*
5151
* @example

base/dists/cosine/quantile/lib/bisect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function bisect( p, mu, s ) {
5555
if ( b - a < TOLERANCE ) {
5656
return m;
5757
}
58-
c = cosineCDF( m, mu, s);
58+
c = cosineCDF( m, mu, s );
5959
if ( p > c ) {
6060
a = m;
6161
} else {

base/dists/weibull/skewness/lib/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function skewness( k, lambda ) {
7979
return NaN;
8080
}
8181
mu = mean( k, lambda );
82-
sigma2 = variance( k, lambda);
82+
sigma2 = variance( k, lambda );
8383
sigma = sqrt( sigma2 );
8484
out = gamma( 1.0 + ( 3.0/k ) ) * pow( lambda, 3.0 );
8585
out -= ( 3.0*mu*sigma2 ) + pow( mu, 3.0 );

kde2d/examples/index.js

+21-21
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
var normal = require( '@stdlib/random/base/normal' );
2222
var ndarray = require( '@stdlib/ndarray/ctor' );
23-
var kde2d = require( '../lib');
23+
var kde2d = require( './../lib' );
2424

2525
var strides;
2626
var buffer;
@@ -38,46 +38,46 @@ var n;
3838

3939
n = 100;
4040

41-
x = new Array(n);
42-
y = new Array(n);
41+
x = new Array( n );
42+
y = new Array( n );
4343

44-
randX = normal.factory(3, 1.2);
45-
randY = normal.factory(10, 4.5);
44+
randX = normal.factory( 3, 1.2 );
45+
randY = normal.factory( 10, 4.5 );
4646

4747
for (i = 0; i < n; i++) {
48-
x[i] = randX();
49-
y[i] = randY();
48+
x[ i ] = randX();
49+
y[ i ] = randY();
5050
}
5151

52-
out = kde2d(x, y);
53-
console.log(out);
52+
out = kde2d( x, y );
53+
console.log( out );
5454

5555
// Choose a different number of grid point:
56-
out = kde2d(x, y, {
56+
out = kde2d( x, y, {
5757
'n': 15
5858
});
59-
console.log(out);
59+
console.log( out );
6060

6161
// Set the x-axis limits:
62-
out = kde2d(x, y, {
63-
'xLim': [-5, 12]
62+
out = kde2d( x, y, {
63+
'xLim': [ -5, 12 ]
6464
});
65-
console.log(out);
65+
console.log( out );
6666

6767
// Set the y-axis limits:
68-
out = kde2d(x, y, {
69-
'yLim': [-3, 13]
68+
out = kde2d( x, y, {
69+
'yLim': [ -3, 13 ]
7070
} );
71-
console.log(out);
71+
console.log( out );
7272

7373
// Choose custom bandwidths:
74-
out = kde2d(x, y, {
75-
'h': [0.05, 0.1]
74+
out = kde2d( x, y, {
75+
'h': [ 0.05, 0.1 ]
7676
});
77-
console.log(out);
77+
console.log( out );
7878

7979
// Use it with an `ndarray`:
80-
buffer = x.concat(y);
80+
buffer = x.concat( y );
8181
shape = [ n, 2 ];
8282
order = 'column-major';
8383
strides = [ 1, n ];

kde2d/lib/triweight.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@ var pow = require( '@stdlib/math/base/special/pow' );
3636
*
3737
* @example
3838
* var u = 5;
39-
* out = triweight(u);
39+
* out = triweight( u );
4040
* // returns 0.0
4141
*/
42-
function triweight(u) {
42+
function triweight( u ) {
4343
var absU;
4444

45-
if (isnan(u)) {
45+
if ( isnan( u ) ) {
4646
return NaN;
4747
}
4848

49-
absU = abs(u);
50-
if (absU > 1) {
49+
absU = abs( u );
50+
if ( absU > 1 ) {
5151
return 0;
5252
}
53-
return (35 / 32) * pow(1.0 - pow(u, 2.0), 3.0);
53+
return ( 35 / 32 ) * pow( 1.0 - pow( u, 2.0 ), 3.0 );
5454
}
5555

5656

kde2d/test/test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ tape( 'the function computes the same values with `ndarray` and numeric array in
208208
order = 'col-major';
209209
offset = 0;
210210

211-
nd = ndarray( 'generic', buffer, shape, strides, offset, order);
211+
nd = ndarray( 'generic', buffer, shape, strides, offset, order );
212212

213-
actualND = kde2d(nd);
214-
actualNumeric = kde2d(dataXSmall, dataYSmall);
213+
actualND = kde2d( nd );
214+
actualNumeric = kde2d( dataXSmall, dataYSmall );
215215

216216
// Check x
217217
for (i = 0; i < n; i++) {

pcorrtest/lib/main.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ function pcorrTest( x, y, options ) {
134134
pval = 1.0 - tCDF( stat, df );
135135
break;
136136
case 'less':
137-
pval = tCDF( stat, df);
137+
pval = tCDF( stat, df );
138138
break;
139139
case 'two-sided':
140140
default:
141-
pval = 2.0 * min( tCDF( stat, df), 1.0 - tCDF( stat, df ));
141+
pval = 2.0 * min( tCDF( stat, df), 1.0 - tCDF( stat, df ) );
142142
break;
143143
}
144144
} else {
@@ -154,7 +154,7 @@ function pcorrTest( x, y, options ) {
154154
break;
155155
case 'two-sided':
156156
default:
157-
pval = 2.0 * min( normCDF( -stat ), 1.0 - normCDF( -stat ));
157+
pval = 2.0 * min( normCDF( -stat ), 1.0 - normCDF( -stat ) );
158158
break;
159159
}
160160
}

0 commit comments

Comments
 (0)