Return median value of Expr
optionally neglecting values == nan
.
double ltl::median_exact | ( | const ExprBase< Expr, N > & | a | ) | [inline] |
References ltl::MArray< T, N >::beginRA(), ltl::ExprBase< Derived_T, N_Dims >::derived(), and ltl::MArray< T, N >::endRA().
Referenced by ltl::biweight_mean(), and ltl::robust_sigma().
double ltl::median_exact | ( | const ExprBase< Expr, N > & | a, | |
const typename Expr::value_type | nan | |||
) | [inline] |
median_exact()
may be a high-cost. Expression is evaluated twice. References ltl::MArray< T, N >::beginRA(), ltl::count(), ltl::ExprBase< Derived_T, N_Dims >::derived(), and ltl::MArray< T, N >::endRA().