OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
opalx::test::Histogram1D Struct Reference

#include <SpectrumTestSupport.h>

Collaboration diagram for opalx::test::Histogram1D:
Collaboration graph

Public Member Functions

double binWidth () const
 
double center (std::size_t i) const
 
double edgeLow (std::size_t i) const
 
double edgeHigh (std::size_t i) const
 

Public Attributes

double low = 0.0
 
double high = 0.0
 
std::size_t nBins = 0
 
std::vector< double > counts
 raw sample counts per bin (out-of-range excluded)
 
std::vector< double > density
 counts / total / binWidth (PDF estimate)
 

Detailed Description

Definition at line 18 of file SpectrumTestSupport.h.

Member Function Documentation

◆ binWidth()

double opalx::test::Histogram1D::binWidth ( ) const
inline

◆ center()

double opalx::test::Histogram1D::center ( std::size_t  i) const
inline

Definition at line 27 of file SpectrumTestSupport.h.

References binWidth(), and low.

Referenced by opalx::test::writeSpectrumCsv().

Here is the call graph for this function:

◆ edgeHigh()

double opalx::test::Histogram1D::edgeHigh ( std::size_t  i) const
inline

Definition at line 33 of file SpectrumTestSupport.h.

References binWidth(), and low.

Referenced by opalx::test::writeSpectrumCsv().

Here is the call graph for this function:

◆ edgeLow()

double opalx::test::Histogram1D::edgeLow ( std::size_t  i) const
inline

Definition at line 31 of file SpectrumTestSupport.h.

References binWidth(), and low.

Referenced by opalx::test::writeSpectrumCsv().

Here is the call graph for this function:

Member Data Documentation

◆ counts

std::vector<double> opalx::test::Histogram1D::counts

raw sample counts per bin (out-of-range excluded)

Definition at line 22 of file SpectrumTestSupport.h.

Referenced by opalx::test::makeHistogram(), and opalx::test::writeSpectrumCsv().

◆ density

std::vector<double> opalx::test::Histogram1D::density

counts / total / binWidth (PDF estimate)

Definition at line 23 of file SpectrumTestSupport.h.

Referenced by opalx::test::histogramArea(), opalx::test::l1Distance(), opalx::test::makeHistogram(), and opalx::test::writeSpectrumCsv().

◆ high

double opalx::test::Histogram1D::high = 0.0

Definition at line 20 of file SpectrumTestSupport.h.

Referenced by binWidth(), and opalx::test::makeHistogram().

◆ low

double opalx::test::Histogram1D::low = 0.0

Definition at line 19 of file SpectrumTestSupport.h.

Referenced by binWidth(), center(), edgeHigh(), edgeLow(), and opalx::test::makeHistogram().

◆ nBins

std::size_t opalx::test::Histogram1D::nBins = 0

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