LTL
2.0.x
|
Functions | |
template<class Expr , int N> | |
MArray< int, 1 > | ltl::histogram (const ExprBase< Expr, N > &a, const int bins, const typename Expr::value_type min, const typename Expr::value_type max, double *const step=NULL, int *const sum=NULL) |
template<class Expr , int N> | |
MArray< int, 1 > | ltl::histogram (const ExprBase< Expr, N > &a, const int bins, const typename Expr::value_type min, const typename Expr::value_type max, const typename Expr::value_type nan, double *const step=NULL, int *const sum=NULL) |
Return the histogram of Expr
as an ltl::MArray<T, 1>, build bins
bins in the range [min, max)
, in every bin include left boundary, exclude right, optionally neglect values == nan
.
MArray<int,1> ltl::histogram | ( | const ExprBase< Expr, N > & | a, |
const int | bins, | ||
const typename Expr::value_type | min, | ||
const typename Expr::value_type | max, | ||
double *const | step = NULL , |
||
int *const | sum = NULL |
||
) |
References ltl::ExprBase< Derived_T, N_Dims >::derived(), and ltl::sum().
Referenced by ltl::median_estimate().
MArray<int,1> ltl::histogram | ( | const ExprBase< Expr, N > & | a, |
const int | bins, | ||
const typename Expr::value_type | min, | ||
const typename Expr::value_type | max, | ||
const typename Expr::value_type | nan, | ||
double *const | step = NULL , |
||
int *const | sum = NULL |
||
) |
References ltl::ExprBase< Derived_T, N_Dims >::derived(), and ltl::sum().