|
TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
|
#include "./histograms.hpp"#include "../utility/exceptions.hpp"#include <h5/h5.hpp>#include <nda/h5.hpp>#include <algorithm>#include <cmath>#include <ostream>#include <string>Implementation details for triqs/stat/histograms.hpp.
Definition in file histograms.cpp.
Go to the source code of this file.
Functions | |
| void | triqs::stat::h5_read (h5::group g, std::string const &name, histogram &h) |
| void | triqs::stat::h5_write (h5::group g, std::string const &name, histogram const &h) |
| histogram | triqs::stat::operator+ (histogram h1, histogram const &h2) |
| std::ostream & | triqs::stat::operator<< (std::ostream &os, histogram const &h) |
| void triqs::stat::h5_read | ( | h5::group | g, |
| std::string const & | name, | ||
| histogram & | h ) |
| g | h5::group containing the dataset. |
| name | Name of the dataset from which the histogram will be read. |
| h | Histogram to be read into. |
Definition at line 80 of file histograms.cpp.
| void triqs::stat::h5_write | ( | h5::group | g, |
| std::string const & | name, | ||
| histogram const & | h ) |
| g | h5::group in which the dataset is created. |
| name | Name of the dataset to which the histogram will be written. |
| h | Histogram to be written. |
Definition at line 70 of file histograms.cpp.
It simply adds the data vector, the number of accumulated data points and the number of discarded data points together.
It throws an exception if the domains or the number of bins of the two histograms are not equal.
| h1 | Left-hand side histogram operand. |
| h2 | Right-hand side histogram operand. |
Definition at line 61 of file histograms.cpp.
| std::ostream & triqs::stat::operator<< | ( | std::ostream & | os, |
| histogram const & | h ) |
| os | std::ostream to which the histogram will be written. |
| h | Histogram to be written. |
Definition at line 91 of file histograms.cpp.