Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ bool stdlib_base_is_negative_integerf( const float x );
```c
#include "stdlib/math/base/assert/is_negative_integerf.h"
#include <stdio.h>
#include <stdbool.h>

int main( void ) {
const float x[] = { 5.0f, -5.0f, 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
Expand Down
13 changes: 13 additions & 0 deletions lib/node_modules/@stdlib/stats/base/dists/weibull/ctor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,17 @@ var mu = weibull.mean;
// returns ~10.877
```

#### Weibull.prototype.median

Returns the [median][median].

```javascript
var weibull = new Weibull( 4.0, 12.0 );

var median = weibull.median;
// returns ~10.949
```

#### Weibull.prototype.mode

Returns the [mode][mode].
Expand Down Expand Up @@ -334,6 +345,8 @@ var y = weibull.cdf( 0.8 );

[kurtosis]: https://en.wikipedia.org/wiki/Kurtosis

[median]: https://en.wikipedia.org/wiki/Median

[mode]: https://en.wikipedia.org/wiki/Mode_%28statistics%29

[skewness]: https://en.wikipedia.org/wiki/Skewness
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{{alias}}( arrays, clbk[, thisArg] )
Computes the minimum value of a one-dimensional ndarray via a callback
function, ignoring NaN values.
function, ignoring `NaN` values.

If provided an empty ndarray, the function returns `NaN`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var strided = require( '@stdlib/stats/strided/nanmin-by' ).ndarray;
// MAIN //

/**
* Computes the minimum value of a one-dimensional ndarray via a callback function, ignoring NaN values.
* Computes the minimum value of a one-dimensional ndarray via a callback function, ignoring `NaN` values.
*
* ## Notes
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var strided = require( '@stdlib/stats/strided/nanrange-by' ).ndarray;
// MAIN //

/**
* Computes the range of a one-dimensional ndarray via a callback function, ignoring NaN values.
* Computes the range of a one-dimensional ndarray via a callback function, ignoring `NaN` values.
*
* ## Notes
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{{alias}}( arrays )
Computes the range of a one-dimensional single-precision floating-point
ndarray, ignoring NaN values.
ndarray, ignoring `NaN` values.

If provided an empty ndarray, the function returns `NaN`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import { float32ndarray } from '@stdlib/types/ndarray';

/**
* Computes the range of a one-dimensional single-precision floating-point ndarray, ignoring NaN values.
* Computes the range of a one-dimensional single-precision floating-point ndarray, ignoring `NaN` values.
*
* ## Notes
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var addon = require( './../src/addon.node' );
// MAIN //

/**
* Computes the range of a one-dimensional single-precision floating-point ndarray, ignoring NaN values.
* Computes the range of a one-dimensional single-precision floating-point ndarray, ignoring `NaN` values.
*
* ## Notes
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{{alias}}( W )
Returns an accumulator function which incrementally computes a moving
maximum absolute value while ignoring `NaN` values.
maximum absolute value, ignoring `NaN` values.

The `W` parameter defines the number of values over which to compute the
moving maximum absolute value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
type accumulator = ( x?: number ) => number | null;

/**
* Returns an accumulator function which incrementally computes a moving maximum absolute value while ignoring `NaN` values.
* Returns an accumulator function which incrementally computes a moving maximum absolute value, ignoring `NaN` values.
*
* ## Notes
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'use strict';

/**
* Compute a moving maximum absolute value incrementally while ignoring `NaN` values.
* Compute a moving maximum absolute value incrementally, ignoring `NaN` values.
*
* @module @stdlib/stats/incr/nanmmaxabs
*
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/incr/nanmmaxabs/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var format = require( '@stdlib/string/format' );
// MAIN //

/**
* Returns an accumulator function which incrementally computes a moving maximum absolute value while ignoring NaN values.
* Returns an accumulator function which incrementally computes a moving maximum absolute value, ignoring `NaN` values.
*
* @param {PositiveInteger} W - window size
* @throws {TypeError} must provide a positive integer
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/incr/nanmstdev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.

# incrnanmstdev

> Compute a moving [corrected sample standard deviation][standard-deviation] incrementally, ignoring NaN values.
> Compute a moving [corrected sample standard deviation][standard-deviation] incrementally, ignoring `NaN` values.
<section class="intro">

Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/stats/incr/nanmstdev/docs/repl.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{{alias}}( W[, mean] )
Returns an accumulator function which incrementally computes a moving
corrected sample standard deviation, ignoring NaN values.
corrected sample standard deviation, ignoring `NaN` values.

The `W` parameter defines the number of values over which to compute the
moving corrected sample standard deviation.
Expand Down Expand Up @@ -53,4 +53,4 @@

See Also
--------

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
type accumulator = ( x?: number ) => number | null;

/**
* Returns an accumulator function which incrementally computes a moving corrected sample standard deviation, ignoring NaN values.
* Returns an accumulator function which incrementally computes a moving corrected sample standard deviation, ignoring `NaN` values.
*
* ## Notes
*
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/incr/nanmstdev/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'use strict';

/**
* Compute a moving corrected sample standard deviation incrementally, ignoring NaN values.
* Compute a moving corrected sample standard deviation incrementally, ignoring `NaN` values.
*
* @module @stdlib/stats/incr/nanmstdev
*
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/incr/nanmstdev/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var incrmstdev = require( '@stdlib/stats/incr/mstdev' );
// MAIN //

/**
* Returns an accumulator function which incrementally computes a moving corrected sample standard deviation, ignoring NaN values.
* Returns an accumulator function which incrementally computes a moving corrected sample standard deviation, ignoring `NaN` values.
*
* ## Method
*
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/incr/nanmvmr/docs/repl.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{{alias}}( W[, mean] )
Returns an accumulator function which incrementally computes a moving
variance-to-mean ratio (VMR) while ignoring NaN values.
variance-to-mean ratio (VMR), ignoring `NaN` values.

The `W` parameter defines the number of values over which to compute the
moving variance-to-mean ratio.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
type accumulator = ( x?: number ) => number | null;

/**
* Returns an accumulator function which incrementally computes a moving variance-to-mean ratio (VMR) while ignoring `NaN` values.
* Returns an accumulator function which incrementally computes a moving variance-to-mean ratio (VMR), ignoring `NaN` values.
*
* @param W - window size
* @param mean - mean value
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/incr/nanmvmr/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
// MAIN //

/**
* Returns an accumulator function which incrementally computes a moving variance-to-mean ratio (VMR) while ignoring `NaN` values.
* Returns an accumulator function which incrementally computes a moving variance-to-mean ratio (VMR), ignoring `NaN` values.
*
* ## Method
*
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/incr/nanprod/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'use strict';

/**
* Compute a product incrementally, while ignoring `NaN` values.
* Compute a product incrementally, ignoring `NaN` values.
*
* @module @stdlib/stats/incr/nanprod
*
Expand Down
Loading