kappa_median_average( Expr, double kappa, [T nan,] double mean [, double sigma] )
[Kappa-Sigma Clipping]

Functions


Detailed Description

Clip according to median, but store average of remaining to mean. Return number of elements after clipping (and optionally resulting sigma in pointed address. Optionally neglect values == nan.


Function Documentation

template<class T >
int ltl::median_clip_average ( const MArray< T, 1 > &  a,
const double  kappa,
double *const   mean,
double *const   sigma = NULL 
) [inline]

Return average after median clipping sorted ltl::MArray<T, 1>.

References ltl::average(), ltl::MArray< T, N >::begin(), ltl::MArrayIterConst< T, N >::done(), ltl::median_sorted_array(), and ltl::stddev().

Referenced by ltl::kappa_median_average().

template<class Expr , int N>
int ltl::kappa_median_average ( const ExprBase< Expr, N > &  e,
const double  kappa,
double *const   mean,
double *const   sigma = NULL 
) [inline]
template<class Expr , int N>
int ltl::kappa_median_average ( const ExprBase< Expr, N > &  e,
const double  kappa,
const typename Expr::value_type  nan,
double *const   mean,
double *const   sigma = NULL 
) [inline]

Generated on 19 Feb 2015 for LTL by  doxygen 1.6.1