Signature | Description | Parameters |
---|---|---|
#include <DataFrame/DataFrameStatsVisitors.h> template<typename T, typename I = unsigned long> struct KthValueVisitor; // ------------------------------------- template<typename T, typename I = unsigned long> using kthv_v = KthValueVisitor<T, I>; |
This is a “single action visitor”, meaning it is passed the whole data vector in one call and you must use the single_act_visit() interface. This functor class finds the Kth element in the given column in linear time. explicit KthValueVisitor (std::size_t ke, bool skipnan = true); |
T: Column data type I: Index type |