Central Tendency
With ranges:
using namespace scistats;
// ...
mean(x);
With iterators:
mean(x.begin(), x.end());
You can run any algorithm in parallel by changing the execution policy:
mean(execution::seq, x);
mean(execution::par, x);
If no execution policy is provided, scistats will infer the best execution policy according to the input data.
Other functions to measure central tendency are:
Function | Description |
---|---|
mean(x) | Arithmetic mean |
median(x) | Median |
mode(x) | Mode |