numeric
Public Member Functions | Public Attributes | List of all members
numeric::Buckets< T > Struct Template Reference

#include <Histogram.hpp>

Public Member Functions

 Buckets (int count, double min_val, double max_val, const T &initial=T())
 
const T & operator[] (size_t idx) const
 
T & operator[] (size_t idx)
 
size_t getIndex (double value) const
 
T & get (double value)
 
double getBucketWidth () const
 
double getUpperBound (size_t idx) const
 
double getLowerBound (size_t idx) const
 
double getCenter (size_t idx) const
 
size_t size () const
 

Public Attributes

int count
 
double min_val
 
double max_val
 
std::vector< T > buckets
 

Constructor & Destructor Documentation

◆ Buckets()

template<class T>
numeric::Buckets< T >::Buckets ( int  count,
double  min_val,
double  max_val,
const T &  initial = T() 
)
inline

Member Function Documentation

◆ get()

template<class T>
T& numeric::Buckets< T >::get ( double  value)
inline

◆ getBucketWidth()

template<class T>
double numeric::Buckets< T >::getBucketWidth ( ) const
inline

◆ getCenter()

template<class T>
double numeric::Buckets< T >::getCenter ( size_t  idx) const
inline

◆ getIndex()

template<class T>
size_t numeric::Buckets< T >::getIndex ( double  value) const
inline

◆ getLowerBound()

template<class T>
double numeric::Buckets< T >::getLowerBound ( size_t  idx) const
inline

◆ getUpperBound()

template<class T>
double numeric::Buckets< T >::getUpperBound ( size_t  idx) const
inline

◆ operator[]() [1/2]

template<class T>
const T& numeric::Buckets< T >::operator[] ( size_t  idx) const
inline

◆ operator[]() [2/2]

template<class T>
T& numeric::Buckets< T >::operator[] ( size_t  idx)
inline

◆ size()

template<class T>
size_t numeric::Buckets< T >::size ( ) const
inline

Member Data Documentation

◆ buckets

template<class T>
std::vector<T> numeric::Buckets< T >::buckets

◆ count

template<class T>
int numeric::Buckets< T >::count

◆ max_val

template<class T>
double numeric::Buckets< T >::max_val

◆ min_val

template<class T>
double numeric::Buckets< T >::min_val

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