24 add( static_cast<float>(x),
25 static_cast<float>(e) );
31 add( static_cast<float>(x), -1. );
40 float wt = 1. /
sqrt(e);
64 float t = xx_/s_ - m*
m;
65 if ( t > 0. ) { t =
sqrt(t); }
71 if ( !median_.empty() ) {
72 sort( median_.begin(), median_.end() );
73 uint16_t
index = median_.size()%2 ? median_.size()/2 : median_.size()/2-1;
75 params.
max_ = median_.back();
76 params.
min_ = median_.front();
78 if ( !mode_.empty() ) {
80 std::map<uint32_t,uint32_t>::const_iterator imap = mode_.begin();
81 for ( ; imap != mode_.end(); imap++ ) {
82 if ( imap->second > max ) {
84 params.
mode_ = imap->first;
void add(const std::vector< const T * > &source, std::vector< const T * > &dest)
void add(const float &value, const float &weight)