17#ifndef __math_Sn_scale_estimator_h__
18#define __math_Sn_scale_estimator_h__
31 template <
typename value_type = default_type>
34 template <
class VectorType>
37 diff.resize (vec.size());
39 for (ssize_t j = 0; j < vec.size(); ++j) {
40 for (ssize_t i = 0; i < vec.size(); ++i)
41 diff[i] =
abs (vec[i] - vec[j]);
vector< value_type > med_diff
value_type operator()(const VectorType &vec)
vector< value_type > diff
MR::default_type value_type
Container::value_type median(Container &list)
constexpr std::enable_if< std::is_arithmetic< X >::value &&std::is_unsigned< X >::value, X >::type abs(X x)