| Signature | Description | Parameters |
|---|---|---|
#include <DataFrame/DataFrameStatsVisitors.h> template<typename T, typename I = unsigned long> struct StdVisitor; |
This functor class calculates the standard deviation of a given column.
explicit
StdVisitor(bool bias = false,
bool skipnan = false,
bool stable_algo = false);
bias: If true it divides by n - 1, otherwise by n.skip_nan: If true it skips over nan numbers as if they didn't exist. stable_algo: If true, it uses a version of Kahan summation that is numerically stable for data with very large values. Kahan summation is slower than regular summation, so only use it, if your data contains very large values. There are also the following member functions:
get_result(): Returns the standard deviation
get_count(): Returns the number of valid datapoints (none NaN)
get_mean(): Returns the mean of the time-series
|
T: Column data type. I: Index type. |