Itoyori  v0.0.1
ityr::reducer::histogram< T, Counter > Struct Template Reference

#include <reducer_extra.hpp>

Public Types

using value_type = T
 
using accumulator_type = global_vector< Counter >
 

Public Member Functions

 histogram (std::size_t n_bins)
 
 histogram (std::size_t n_bins, const value_type &lowest, const value_type &highest)
 
void operator() (accumulator_type &acc, const value_type &x) const
 
void operator() (accumulator_type &acc_l, const accumulator_type &acc_r) const
 
void operator() (const accumulator_type &acc_l, accumulator_type &acc_r) const
 
accumulator_type operator() () const
 

Member Typedef Documentation

◆ accumulator_type

template<typename T , typename Counter = std::size_t>
using ityr::reducer::histogram< T, Counter >::accumulator_type = global_vector<Counter>

◆ value_type

template<typename T , typename Counter = std::size_t>
using ityr::reducer::histogram< T, Counter >::value_type = T

Constructor & Destructor Documentation

◆ histogram() [1/2]

template<typename T , typename Counter = std::size_t>
ityr::reducer::histogram< T, Counter >::histogram ( std::size_t  n_bins)
inline

◆ histogram() [2/2]

template<typename T , typename Counter = std::size_t>
ityr::reducer::histogram< T, Counter >::histogram ( std::size_t  n_bins,
const value_type lowest,
const value_type highest 
)
inline

Member Function Documentation

◆ operator()() [1/4]

template<typename T , typename Counter = std::size_t>
accumulator_type ityr::reducer::histogram< T, Counter >::operator() ( ) const
inline

◆ operator()() [2/4]

template<typename T , typename Counter = std::size_t>
void ityr::reducer::histogram< T, Counter >::operator() ( accumulator_type acc,
const value_type x 
) const
inline

◆ operator()() [3/4]

template<typename T , typename Counter = std::size_t>
void ityr::reducer::histogram< T, Counter >::operator() ( accumulator_type acc_l,
const accumulator_type acc_r 
) const
inline

◆ operator()() [4/4]

template<typename T , typename Counter = std::size_t>
void ityr::reducer::histogram< T, Counter >::operator() ( const accumulator_type acc_l,
accumulator_type acc_r 
) const
inline

The documentation for this struct was generated from the following file: