#include <UniformAxis.h>
Public Member Functions | |
gs::ClassId | classId () const |
double | coordinate (unsigned i) const |
std::vector< double > | coords () const |
std::pair< unsigned, double > | getInterval (double coordinate) const |
double | intervalWidth (unsigned) const |
bool | isClose (const UniformAxis &r, double tol) const |
bool | isUniform () const |
const std::string & | label () const |
double | length () const |
std::pair< unsigned, double > | linearInterval (double coordinate) const |
double | max () const |
double | min () const |
unsigned | nCoords () const |
unsigned | nIntervals () const |
bool | operator!= (const UniformAxis &r) const |
bool | operator== (const UniformAxis &r) const |
void | setLabel (const char *newlabel) |
UniformAxis (unsigned nCoords, double min, double max, const char *label=nullptr) | |
bool | usesLogSpace () const |
bool | write (std::ostream &of) const |
Static Public Member Functions | |
static const char * | classname () |
static UniformAxis * | read (const gs::ClassId &id, std::istream &in) |
static unsigned | version () |
Private Member Functions | |
UniformAxis () | |
Private Attributes | |
double | bw_ |
std::string | label_ |
double | max_ |
double | min_ |
unsigned | npt_ |
This class contains the info needed to define an axis of a rectangular grid. The distance between grid points is uniform.
Definition at line 27 of file UniformAxis.h.
npstat::UniformAxis::UniformAxis | ( | unsigned | nCoords, |
double | min, | ||
double | max, | ||
const char * | label = nullptr |
||
) |
Definition at line 13 of file UniformAxis.cc.
References bw_, max_, min_, npt_, and std::swap().
|
inlineprivate |
|
inline |
Definition at line 74 of file UniformAxis.h.
Referenced by npstat::DualAxis::write().
|
inlinestatic |
Definition at line 77 of file UniformAxis.h.
double npstat::UniformAxis::coordinate | ( | unsigned | i | ) | const |
Definition at line 74 of file UniformAxis.cc.
References bw_, mps_fire::i, max_, min_, and npt_.
Referenced by npstat::DualAxis::coordinate().
std::vector< double > npstat::UniformAxis::coords | ( | ) | const |
Definition at line 64 of file UniformAxis.cc.
References bw_, mps_fire::i, max_, min_, and npt_.
Referenced by npstat::DualAxis::coords().
std::pair< unsigned, double > npstat::UniformAxis::getInterval | ( | double | coordinate | ) | const |
Definition at line 28 of file UniformAxis.cc.
References bw_, max_, min_, npt_, and w().
Referenced by npstat::DualAxis::getInterval().
|
inline |
Definition at line 62 of file UniformAxis.h.
References bw_.
Referenced by npstat::DualAxis::intervalWidth().
bool npstat::UniformAxis::isClose | ( | const UniformAxis & | r, |
double | tol | ||
) | const |
Definition at line 83 of file UniformAxis.cc.
References npstat::closeWithinTolerance(), label_, max_, min_, and npt_.
|
inline |
Definition at line 60 of file UniformAxis.h.
|
inline |
Definition at line 36 of file UniformAxis.h.
References label_.
Referenced by npstat::convertToHistoAxis(), npstat::DualAxis::label(), and read().
|
inline |
std::pair< unsigned, double > npstat::UniformAxis::linearInterval | ( | double | coordinate | ) | const |
Definition at line 46 of file UniformAxis.cc.
References bw_, max_, min_, npt_, and w().
Referenced by npstat::DualAxis::linearInterval().
|
inline |
Definition at line 35 of file UniformAxis.h.
References max_.
Referenced by npstat::convertToHistoAxis(), npstat::DualAxis::max(), and read().
|
inline |
Definition at line 34 of file UniformAxis.h.
References min_.
Referenced by npstat::convertToHistoAxis(), npstat::DualAxis::min(), and read().
|
inline |
Definition at line 33 of file UniformAxis.h.
References npt_.
Referenced by npstat::convertToHistoAxis(), and npstat::DualAxis::nCoords().
|
inline |
Definition at line 61 of file UniformAxis.h.
References npt_.
Referenced by npstat::DualAxis::nIntervals().
|
inline |
bool npstat::UniformAxis::operator== | ( | const UniformAxis & | r | ) | const |
|
static |
Definition at line 100 of file UniformAxis.cc.
References label(), max(), min(), AlCaHLTBitMon_QueryRunRegistry::string, and UniformAxis().
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), and npstat::DualAxis::read().
|
inline |
Definition at line 71 of file UniformAxis.h.
References label_.
Referenced by SequenceTypes.DummyModule::__init__(), SequenceTypes.DummyBooleanModule::__init__(), and npstat::DualAxis::setLabel().
|
inline |
Definition at line 37 of file UniformAxis.h.
Referenced by npstat::DualAxis::usesLogSpace().
|
inlinestatic |
Definition at line 78 of file UniformAxis.h.
Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().
bool npstat::UniformAxis::write | ( | std::ostream & | of | ) | const |
Definition at line 92 of file UniformAxis.cc.
References label_, max_, min_, and npt_.
Referenced by npstat::DualAxis::write().
|
private |
Definition at line 84 of file UniformAxis.h.
Referenced by coordinate(), coords(), getInterval(), intervalWidth(), linearInterval(), and UniformAxis().
|
private |
Definition at line 85 of file UniformAxis.h.
Referenced by SequenceTypes.DummyModule::__repr__(), Mixins._Labelable::_findDependencies(), isClose(), label(), operator==(), setLabel(), Mixins._Labelable::setLabel(), and write().
|
private |
Definition at line 83 of file UniformAxis.h.
Referenced by coordinate(), coords(), getInterval(), isClose(), length(), linearInterval(), max(), operator==(), UniformAxis(), and write().
|
private |
Definition at line 82 of file UniformAxis.h.
Referenced by coordinate(), coords(), getInterval(), isClose(), length(), linearInterval(), min(), operator==(), UniformAxis(), and write().
|
private |
Definition at line 86 of file UniformAxis.h.
Referenced by coordinate(), coords(), getInterval(), isClose(), linearInterval(), nCoords(), nIntervals(), operator==(), UniformAxis(), and write().