Pottu
Public Member Functions | Public Attributes | List of all members
pottu::Histogram1D< Binner, Cell > Class Template Reference

Simple 1D histogram. More...

#include <Histogram1D.hpp>

Public Member Functions

 Histogram1D (const Binner &binner)
 
 Histogram1D (typename Binner::value_type low, typename Binner::value_type high, unsigned int binc)
 
const std::string & title () const
 
void setTitle (const std::string &newtitle)
 
const std::string & xlabel () const
 
void setXlabel (const std::string &newxlabel)
 
const std::string & ylabel () const
 
void setYlabel (const std::string &newylabel)
 
void fill (typename Binner::value_type value) noexcept
 
void fill (typename Binner::value_type value, Cell amount) noexcept
 
void fillNoRangeTesting (typename Binner::value_type value) noexcept
 
void exportAscii (std::ostream &os) const
 
nlohmann::json getAsJSON () const
 

Public Attributes

Binner _binner
 
std::vector< Cell > _data
 
Cell _underflows = 0
 
Cell _overflows = 0
 
std::string _title
 
std::string _xlabel
 
std::string _ylabel
 

Detailed Description

template<class Binner, class Cell>
class pottu::Histogram1D< Binner, Cell >

Simple 1D histogram.


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