Pottu
Public Member Functions | Public Attributes | List of all members
pottu::Histogram2D< XBinner, YBinner, Cell > Class Template Reference

Simple 2D histogram. More...

#include <Histogram2D.hpp>

Public Member Functions

 Histogram2D (typename XBinner::value_type xlow, typename XBinner::value_type xhigh, unsigned int xbinc, typename YBinner::value_type ylow, typename YBinner::value_type yhigh, unsigned int ybinc)
 
 Histogram2D (const Histogram2D &o)=default
 
 Histogram2D (Histogram2D &&o)=default
 
Histogram2Doperator= (const Histogram2D &o)=default
 
Histogram2Doperator= (Histogram2D &&o)=default
 
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)
 
const std::string & zlabel () const
 
void setZlabel (const std::string &newzlabel)
 
void fill (typename XBinner::value_type xvalue, typename YBinner::value_type yvalue)
 
void fill (typename XBinner::value_type xvalue, typename YBinner::value_type yvalue, Cell amount)
 
std::ostream & exportGnuplotBinary (std::ostream &os) const
 
nlohmann::json getAsJSON () const
 

Public Attributes

XBinner _xbinner
 
YBinner _ybinner
 
std::vector< Cell > _data
 
Cell _xunderflows = 0
 
Cell _xoverflows = 0
 
Cell _yunderflows = 0
 
Cell _yoverflows = 0
 
std::string _title
 
std::string _xlabel
 
std::string _ylabel
 
std::string _zlabel
 

Detailed Description

template<class XBinner, class YBinner, class Cell>
class pottu::Histogram2D< XBinner, YBinner, Cell >

Simple 2D histogram.


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