#include <DualAxis.h>
Public Member Functions | |
double | coordinate (const unsigned i) const |
std::vector< double > | coords () const |
DualAxis (const GridAxis &g) | |
DualAxis (const UniformAxis &u) | |
DualAxis (unsigned nCoords, double min, double max, const char *label=0) | |
DualAxis (const std::vector< double > &coords, const bool useLogSpace=false) | |
DualAxis (const std::vector< double > &coords, const char *label, const bool useLogSpace=false) | |
std::pair< unsigned, double > | getInterval (const double x) const |
double | intervalWidth (const unsigned i=0) const |
bool | isUniform () const |
const std::string & | label () const |
double | length () const |
std::pair< unsigned, double > | linearInterval (const double x) const |
double | max () const |
double | min () const |
unsigned | nCoords () const |
unsigned | nIntervals () const |
bool | operator!= (const DualAxis &r) const |
bool | operator== (const DualAxis &r) const |
void | setLabel (const char *newlabel) |
bool | usesLogSpace () const |
const GridAxis * | getGridAxis () const |
const UniformAxis * | getUniformAxis () const |
gs::ClassId | classId () const |
bool | write (std::ostream &of) const |
Static Public Member Functions | |
static const char * | classname () |
static DualAxis * | read (const gs::ClassId &id, std::istream &in) |
static unsigned | version () |
Private Member Functions | |
DualAxis () | |
Static Private Member Functions | |
static std::vector< double > | dummy_vec () |
Private Attributes | |
GridAxis | a_ |
UniformAxis | u_ |
bool | uniform_ |
Rectangular grid axis which can be either uniform or non-uniform. Will work a little bit slower than either GridAxis or UniformAxis, but can be used in place of either one of them.
Definition at line 24 of file DualAxis.h.
|
inline |
Definition at line 28 of file DualAxis.h.
|
inline |
Definition at line 31 of file DualAxis.h.
|
inline |
Definition at line 34 of file DualAxis.h.
|
inlineexplicit |
Definition at line 38 of file DualAxis.h.
|
inline |
Definition at line 42 of file DualAxis.h.
|
inlineprivate |
|
inline |
Method related to "geners" I/O
Definition at line 110 of file DualAxis.h.
|
inlinestatic |
Definition at line 114 of file DualAxis.h.
|
inline |
Definition at line 70 of file DualAxis.h.
References a_, npstat::UniformAxis::coordinate(), npstat::GridAxis::coordinate(), u_, and uniform_.
|
inline |
Definition at line 82 of file DualAxis.h.
References a_, npstat::GridAxis::coords(), npstat::UniformAxis::coords(), u_, and uniform_.
|
inlinestaticprivate |
Definition at line 123 of file DualAxis.h.
|
inline |
Return a pointer to the underlying axis. This will be a null pointer if the axis does not correspond to the constructed type.
Definition at line 97 of file DualAxis.h.
|
inline |
Definition at line 64 of file DualAxis.h.
References a_, npstat::UniformAxis::getInterval(), npstat::GridAxis::getInterval(), u_, and uniform_.
|
inline |
Definition at line 100 of file DualAxis.h.
|
inline |
Definition at line 79 of file DualAxis.h.
References a_, i, npstat::UniformAxis::intervalWidth(), npstat::GridAxis::intervalWidth(), u_, and uniform_.
|
inline |
|
inline |
Definition at line 58 of file DualAxis.h.
References a_, npstat::UniformAxis::label(), npstat::GridAxis::label(), u_, and uniform_.
|
inline |
Definition at line 73 of file DualAxis.h.
References a_, npstat::UniformAxis::length(), npstat::GridAxis::length(), u_, and uniform_.
|
inline |
Definition at line 67 of file DualAxis.h.
References a_, npstat::UniformAxis::linearInterval(), npstat::GridAxis::linearInterval(), u_, and uniform_.
|
inline |
Definition at line 55 of file DualAxis.h.
References a_, npstat::UniformAxis::max(), npstat::GridAxis::max(), u_, and uniform_.
|
inline |
Definition at line 52 of file DualAxis.h.
References a_, npstat::UniformAxis::min(), npstat::GridAxis::min(), u_, and uniform_.
|
inline |
Definition at line 49 of file DualAxis.h.
References a_, npstat::UniformAxis::nCoords(), npstat::GridAxis::nCoords(), u_, and uniform_.
|
inline |
Definition at line 76 of file DualAxis.h.
References a_, npstat::UniformAxis::nIntervals(), npstat::GridAxis::nIntervals(), u_, and uniform_.
|
inline |
|
inline |
|
static |
Definition at line 18 of file DualAxis.cc.
References EnergyCorrector::c, cond::rpcobimon::current, DualAxis(), npstat::UniformAxis::read(), and npstat::GridAxis::read().
|
inline |
Modify the axis label
Definition at line 105 of file DualAxis.h.
References a_, npstat::UniformAxis::setLabel(), npstat::GridAxis::setLabel(), u_, and uniform_.
|
inline |
Definition at line 61 of file DualAxis.h.
References a_, u_, uniform_, npstat::UniformAxis::usesLogSpace(), and npstat::GridAxis::usesLogSpace().
|
inlinestatic |
Definition at line 115 of file DualAxis.h.
Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().
bool npstat::DualAxis::write | ( | std::ostream & | of | ) | const |
Definition at line 8 of file DualAxis.cc.
References a_, EnergyCorrector::c, npstat::UniformAxis::classId(), npstat::GridAxis::classId(), u_, uniform_, npstat::UniformAxis::write(), and npstat::GridAxis::write().
|
private |
Definition at line 119 of file DualAxis.h.
Referenced by coordinate(), coords(), getGridAxis(), getInterval(), intervalWidth(), label(), length(), linearInterval(), max(), min(), nCoords(), nIntervals(), operator==(), setLabel(), usesLogSpace(), and write().
|
private |
Definition at line 120 of file DualAxis.h.
Referenced by coordinate(), coords(), getInterval(), getUniformAxis(), intervalWidth(), label(), length(), linearInterval(), max(), min(), nCoords(), nIntervals(), operator==(), setLabel(), usesLogSpace(), and write().
|
private |
Definition at line 121 of file DualAxis.h.
Referenced by coordinate(), coords(), getGridAxis(), getInterval(), getUniformAxis(), intervalWidth(), isUniform(), label(), length(), linearInterval(), max(), min(), nCoords(), nIntervals(), operator==(), setLabel(), usesLogSpace(), and write().