'use strict';

/**
* Compute a sample standard deviation incrementally.
*
* @module @stdlib/math/generics/statistics/incrstdev
*
* @example
* var incrstdev = require( '@stdlib/math/generics/statistics/incrstdev' );
*
* var accumulator = incrstdev();
*
* var s2 = accumulator();
* // returns 0.0
*
* s2 = accumulator( 2.0 );
* // returns 0.0
*
* s2 = accumulator( -5.0 );
* // returns ~4.95
*
* s2 = accumulator();
* // returns ~4.95
*/

// MODULES //

var incrstdev = require( './incrstdev.js' );


// EXPORTS //

module.exports = incrstdev;

'use strict';

/**
* Compute a sample standard deviation incrementally.
*
* @module @stdlib/math/generics/statistics/incrstdev
*
* @example
* var incrstdev = require( '@stdlib/math/generics/statistics/incrstdev' );
*
* var accumulator = incrstdev();
*
* var s = accumulator();
* // returns 0.0
*
* s = accumulator( 2.0 );
* // returns 0.0
*
* s = accumulator( -5.0 );
* // returns ~4.95
*
* s = accumulator();
* // returns ~4.95
*/

// MODULES //

var incrstdev = require( './incrstdev.js' );


// EXPORTS //

module.exports = incrstdev;

Use s instead of s2 for sample standard deviation
Use s instead of s2 for sample standard deviation