Class expression_histogram¶
class expression_histogram<Bins, E, TCount> base¶
template <size_t Bins, typename E, typename TCount = uint32_t>
struct expression_histogram : public expression_with_traits<E> { … } Expression that computes a histogram as data flows through it.
| Bins | Number of bins, or 0 for runtime-sized bins. |
| E | Wrapped input expression type. |
| TCount | Integer type used for bin counts. |
variable data ¶
mutable histogram_data<Bins, TCount> data{} Fully qualified name: kfr::expression_histogram<Bins, E, TCount>::data
Declared at base/reduce.hpp:372
constructor expression_histogram<Bins, E, TCount>(E &&, size_t) ¶
Constructs a runtime-sized histogram expression.
| e | Input expression to wrap. |
| steps | Number of bins. Only used when Bins is 0. |
Fully qualified name: kfr::expression_histogram<Bins, E, TCount>::expression_histogram<Bins, E, TCount>(E &&, size_t)
Declared at base/reduce.hpp:381
typedef value_type ¶
using value_type = typename expression_with_traits<E>::value_type Fully qualified name: kfr::expression_histogram<Bins, E, TCount>::value_type
Declared at base/reduce.hpp:386
function get_elements(const expression_histogram<Bins, E, TCount> &, const shape<expression_with_traits<E>::dims> &, const axis_params<Axis, N> &) ¶
template <index_t Axis, size_t N>
friend KFR_INTRINSIC vec<value_type, N> get_elements(const expression_histogram& self,
const shape<expression_with_traits<E>::dims>& index,
const axis_params<Axis, N>& sh) Fully qualified name: kfr::expression_histogram<Bins, E, TCount>::get_elements(const expression_histogram<Bins, E, TCount> &, const shape<expression_with_traits<E>::dims> &, const axis_params<Axis, N> &)
Declared at base/reduce.hpp:389
Fully qualified name: kfr::expression_histogram<Bins, E, TCount>
Declared at base/reduce.hpp:370