stdev
Description
API
stdev(
[initialState={index: 0, mean: 0, m2: null}],
[sample=true]
)Since
Parameters
Options
Returns
Arguments
Options
Examples
Last updated
stdev(
[initialState={index: 0, mean: 0, m2: null}],
[sample=true]
)Last updated
import { from } from 'rxjs';
import { takeLast } from 'rxjs';
import { stdev, roundTo } from '@buccaneer/rxjs-stats';
const stdev$ = from([600, 470, 170, 430, 300]).pipe(
stdev(),
takeLast(1),
roundTo(6)
);
stdev$.subscribe(console.log);
// Output:
// 164.71187