27 lines
469 B
Plaintext
27 lines
469 B
Plaintext
|
|
||
|
{{alias}}( iterator[, mean] )
|
||
|
Computes an unbiased sample variance over all iterated values.
|
||
|
|
||
|
Parameters
|
||
|
----------
|
||
|
iterator: Object
|
||
|
Input iterator.
|
||
|
|
||
|
mean: number (optional)
|
||
|
Known mean.
|
||
|
|
||
|
Returns
|
||
|
-------
|
||
|
out: number|null
|
||
|
Unbiased sample variance.
|
||
|
|
||
|
Examples
|
||
|
--------
|
||
|
> var arr = {{alias:@stdlib/array/to-iterator}}( [ 2.0, -5.0 ] );
|
||
|
> var s2 = {{alias}}( arr )
|
||
|
24.5
|
||
|
|
||
|
See Also
|
||
|
--------
|
||
|
|