Skip to content

Commit 3bff7c3

Browse files
committed
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into develop
2 parents 2d54ac2 + 6568836 commit 3bff7c3

90 files changed

Lines changed: 2251 additions & 410 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/node_modules/@stdlib/math/base/dist/degenerate/cdf/lib/cdf.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,19 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
1717
* @example
1818
* var y = cdf( 2.0, 3.0 );
1919
* // returns 0.0
20+
*
2021
* @example
2122
* var y = cdf( 4.0, 3.0 );
2223
* // returns 1.0
24+
*
2325
* @example
2426
* var y = cdf( 3.0, 3.0 );
2527
* // returns 1.0
28+
*
2629
* @example
2730
* var y = cdf( NaN, 0.0 );
2831
* // returns NaN
32+
*
2933
* @example
3034
* var y = cdf( 0.0, NaN );
3135
* // returns NaN

lib/node_modules/@stdlib/math/base/dist/degenerate/cdf/lib/factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// MODULES //
44

5+
var constantFunction = require( '@stdlib/utils/constant-function' );
56
var isnan = require( '@stdlib/math/base/assert/is-nan' );
6-
var nan = require( './nan.js' );
77

88

99
// MAIN //
@@ -28,7 +28,7 @@ var nan = require( './nan.js' );
2828
*/
2929
function factory( mu ) {
3030
if ( isnan( mu ) ) {
31-
return nan;
31+
return constantFunction( NaN );
3232
}
3333
return cdf;
3434

lib/node_modules/@stdlib/math/base/dist/degenerate/cdf/lib/nan.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

lib/node_modules/@stdlib/math/base/dist/degenerate/logcdf/lib/factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
// MODULES //
44

5+
var constantFunction = require( '@stdlib/utils/constant-function' );
56
var isnan = require( '@stdlib/math/base/assert/is-nan' );
67
var NINF = require( '@stdlib/math/constants/float64-ninf' );
7-
var nan = require( './nan.js' );
88

99

1010
// MAIN //
@@ -29,7 +29,7 @@ var nan = require( './nan.js' );
2929
*/
3030
function factory( mu ) {
3131
if ( isnan( mu ) ) {
32-
return nan;
32+
return constantFunction( NaN );
3333
}
3434
return logcdf;
3535

lib/node_modules/@stdlib/math/base/dist/degenerate/logcdf/lib/logcdf.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,19 @@ var NINF = require( '@stdlib/math/constants/float64-ninf' );
1818
* @example
1919
* var y = logcdf( 2.0, 3.0 );
2020
* // returns -Infinity
21+
*
2122
* @example
2223
* var y = logcdf( 4.0, 3.0 );
2324
* // returns 0.0
25+
*
2426
* @example
2527
* var y = logcdf( 3.0, 3.0 );
2628
* // returns 0.0
29+
*
2730
* @example
2831
* var y = logcdf( NaN, 0.0 );
2932
* // returns NaN
33+
*
3034
* @example
3135
* var y = logcdf( 0.0, NaN );
3236
* // returns NaN

lib/node_modules/@stdlib/math/base/dist/degenerate/logcdf/lib/nan.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

lib/node_modules/@stdlib/math/base/dist/degenerate/logpdf/lib/factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
// MODULES //
44

5+
var constantFunction = require( '@stdlib/utils/constant-function' );
56
var PINF = require( '@stdlib/math/constants/float64-pinf' );
67
var NINF = require( '@stdlib/math/constants/float64-ninf' );
78
var isnan = require( '@stdlib/math/base/assert/is-nan' );
8-
var nan = require( './nan.js' );
99

1010

1111
// MAIN //
@@ -27,7 +27,7 @@ var nan = require( './nan.js' );
2727
*/
2828
function factory( mu ) {
2929
if ( isnan( mu ) ) {
30-
return nan;
30+
return constantFunction( NaN );
3131
}
3232
return logpdf;
3333

lib/node_modules/@stdlib/math/base/dist/degenerate/logpdf/lib/logpdf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
1919
* @example
2020
* var y = logpdf( 2.0, 3.0 );
2121
* // returns -Infinity
22+
*
2223
* @example
2324
* var y = logpdf( 3.0, 3.0 );
2425
* // returns Infinity
26+
*
2527
* @example
2628
* var y = logpdf( NaN, 0.0 );
2729
* // returns NaN
30+
*
2831
* @example
2932
* var y = logpdf( 0.0, NaN );
3033
* // returns NaN

lib/node_modules/@stdlib/math/base/dist/degenerate/logpdf/lib/nan.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

lib/node_modules/@stdlib/math/base/dist/degenerate/mgf/lib/factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
// MODULES //
44

5+
var constantFunction = require( '@stdlib/utils/constant-function' );
56
var isnan = require( '@stdlib/math/base/assert/is-nan' );
67
var exp = require( '@stdlib/math/base/special/exp' );
7-
var nan = require( './nan.js' );
88

99

1010
// MAIN //
@@ -26,7 +26,7 @@ var nan = require( './nan.js' );
2626
*/
2727
function factory( mu ) {
2828
if ( isnan( mu ) ) {
29-
return nan;
29+
return constantFunction( NaN );
3030
}
3131
return mgf;
3232

0 commit comments

Comments
 (0)