|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Lightweight histogram + CSV utilities shared by decay spectrum tests. More...
#include <cmath>#include <cstddef>#include <fstream>#include <stdexcept>#include <string>#include <vector>

Go to the source code of this file.
Classes | |
| struct | opalx::test::Histogram1D |
Namespaces | |
| namespace | opalx |
| namespace | opalx::test |
Functions | |
| Histogram1D | opalx::test::makeHistogram (const std::vector< double > &samples, double low, double high, std::size_t nBins) |
| double | opalx::test::l1Distance (const Histogram1D &sampled, const std::vector< double > &analyticPdf) |
| double | opalx::test::histogramArea (const Histogram1D &h) |
| Riemann sum of the histogram density (should be ~1 if all samples were in range). | |
| double | opalx::test::sampleMean (const std::vector< double > &samples) |
| void | opalx::test::writeSpectrumCsv (const std::string &path, const Histogram1D &h, const std::vector< double > &analyticPdf, const std::string &xLabel) |
Lightweight histogram + CSV utilities shared by decay spectrum tests.
Definition in file SpectrumTestSupport.h.