65 std::vector<float>& dq_trunc_v,
const float& nsigma = 1);
79 const size_t& nmax,
const size_t& currentiteration,
81 const float& convergencelimit,
91 float Mean (
const std::vector<float>& v);
92 float Median(
const std::vector<float>& v);
93 float RMS (
const std::vector<float>& v);
static const float kINVALID_FLOAT
float Median(const std::vector< float > &v)
void setRadius(const float &rad)
Set the smearing radius over which to take hits for truncated mean computaton.
float RMS(const std::vector< float > &v)
~TruncMean()
Default destructor.
float CalcIterativeTruncMean(std::vector< float > v, const size_t &nmin, const size_t &nmax, const size_t ¤titeration, const size_t &lmin, const float &convergencelimit, const float &nsigma, const float &oldmed=kINVALID_FLOAT)
Iteratively calculate the truncated mean of a distribution std::vector<float> v -> vector of values ...
float Mean(const std::vector< float > &v)
void CalcTruncMeanProfile(const std::vector< float > &rr_v, const std::vector< float > &dq_v, std::vector< float > &dq_trunc_v, const float &nsigma=1)
Given residual range and dq vectors return truncated local dq. Input vectors are assumed to be match ...
TruncMean()
Default constructor.