Tomographer  v5.3
Tomographer C++ Framework Documentation
histogram.h File Reference

(v5.3)

Definitions for Histogram Types. More...

#include <cmath>
#include <cstdlib>
#include <utility>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <stdexcept>
#include <type_traits>
#include <algorithm>
#include <boost/math/constants/constants.hpp>
#include <boost/serialization/serialization.hpp>
#include <boost/serialization/base_object.hpp>
#include <Eigen/Core>
#include <tomographer/tools/fmt.h>
#include <tomographer/tools/eigenutil.h>
#include <tomographer/tools/cxxutil.h>
#include <tomographer/tools/needownoperatornew.h>
+ Include dependency graph for histogram.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Tomographer::HistogramParams< Scalar_ >
 The parameters of a Histogram. More...
 
class  Tomographer::Histogram< Scalar_, CountType_ >
 Stores a histogram. More...
 
class  Tomographer::HistogramWithErrorBars< Scalar_, CountType_ >
 Stores a histogram along with error bars. More...
 
class  Tomographer::AveragedHistogram< HistogramType_, RealAvgType >
 Combines several histograms (with same parameters) into an averaged histogram. More...
 
class  Tomographer::AggregatedHistogramSimple< HistogramType_, CountRealType_ >
 Histogram aggregator, if each histogram doesn't have error bars. More...
 
class  Tomographer::AggregatedHistogramWithErrorBars< HistogramType_, CountRealType_ >
 Histogram aggregator, if each individual histogram already has error bars. More...
 

Namespaces

 Tomographer
 Base namespace for the Tomographer project.
 

Typedefs

template<typename Scalar_ = double>
using Tomographer::UniformBinsHistogramParams = HistogramParams< Scalar_ >
 
template<typename Scalar_ , typename CountType_ = int>
using Tomographer::UniformBinsHistogram = Histogram< Scalar_, CountType_ >
 
template<typename Scalar_ , typename CountType_ = double>
using Tomographer::UniformBinsHistogramWithErrorBars = HistogramWithErrorBars< Scalar_, CountType_ >
 

Functions

template<typename HistogramType >
void Tomographer::histogramPrettyPrint (std::ostream &str, const HistogramType &histogram, int max_width=0)
 pretty-print the given histogram. More...
 
template<typename HistogramType >
std::string Tomographer::histogramPrettyPrint (const HistogramType &histogram, int max_width=0)
 Utility to display histograms for humans. More...
 
template<typename HistogramType >
int Tomographer::histogramShortBar (std::ostream &str, const HistogramType &histogram, bool log_scale=true, int max_width=0)
 Format the histogram as a one-line bar. More...
 
template<typename HistogramType >
std::string Tomographer::histogramShortBar (const HistogramType &histogram, bool log_scale=true, int max_width=0)
 Format the histogram as a one-line bar. More...
 
template<typename HistogramType >
void Tomographer::histogramShortBarWithInfo (std::ostream &str, std::string head, const HistogramType &hist, std::string tail, bool log_scale=true, int full_max_width=0)
 Format the histogram as a one-line bar, with some surrounding info. More...
 
template<typename HistogramType >
std::string Tomographer::histogramShortBarWithInfo (std::string head, const HistogramType &hist, std::string tail, bool log_scale=true, int full_max_width=0)
 Format the histogram as a one-line bar, with some surrounding info. More...
 

Detailed Description

Definitions for Histogram Types.

Definition in file histogram.h.