31 #include "WHistogramBasic.h"
38 m_intervalWidth( std::abs( m_maximum - m_minimum ) / static_cast< double >( m_nbBuckets ) )
44 m_bins( hist.m_bins ),
45 m_intervalWidth( hist.m_intervalWidth )
61 if( index >=
m_bins.size() )
63 wlog::error(
"WHistogramBasic" ) << index <<
"th interval is not available, there are only: " <<
m_bins.size();
78 return std::make_pair( first, second );
85 wlog::warn(
"WHistogramBasic" ) << std::scientific << std::setprecision( 16 ) <<
"Inserted value out of bounds, thread: "
106 return std::accumulate(
m_bins.begin(),
m_bins.end(), 0 );