LTL
2.0.x
|
Functions | |
template<class T > | |
double | ltl::mode_histogram (const MArray< T, 1 > &h, const double min, const double step, const int sum) |
Helper class for median_estimate() . More... | |
template<class Expr , int N> | |
double | ltl::median_estimate (const ExprBase< Expr, N > &e, const int bins, const typename Expr::value_type min, const typename Expr::value_type max, double *stepptr=NULL, int *sumptr=NULL) |
template<class Expr , int N> | |
double | ltl::median_estimate (const ExprBase< Expr, N > &e, const int bins, const typename Expr::value_type min, const typename Expr::value_type max, const typename Expr::value_type nan, double *stepptr=NULL, int *sumptr=NULL) |
Return mode of a histogram of Expr
(see histogram ( Expr, int bins, T min, T max [, T nan] ) below).
double ltl::mode_histogram | ( | const MArray< T, 1 > & | h, |
const double | min, | ||
const double | step, | ||
const int | sum | ||
) |
Helper class for median_estimate()
.
Return mode of a histogram of bins \e bins, starting at \e min,
with step size step (see histogram ( Expr, int bins, T min, T max [, T nan] ) below). (Exactly: left boundary of bin holding the bisector of the histogram)
References ltl::count().
Referenced by ltl::median_estimate().
double ltl::median_estimate | ( | const ExprBase< Expr, N > & | e, |
const int | bins, | ||
const typename Expr::value_type | min, | ||
const typename Expr::value_type | max, | ||
double * | stepptr = NULL , |
||
int * | sumptr = NULL |
||
) |
References ltl::histogram(), ltl::mode_histogram(), and ltl::sum().
double ltl::median_estimate | ( | const ExprBase< Expr, N > & | e, |
const int | bins, | ||
const typename Expr::value_type | min, | ||
const typename Expr::value_type | max, | ||
const typename Expr::value_type | nan, | ||
double * | stepptr = NULL , |
||
int * | sumptr = NULL |
||
) |
References ltl::histogram(), ltl::mode_histogram(), and ltl::sum().