#include <DualAxis.hh>
|
| 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) |
|
bool | isUniform () const |
|
unsigned | nCoords () const |
|
double | min () const |
|
double | max () const |
|
const std::string & | label () const |
|
bool | usesLogSpace () const |
|
std::pair< unsigned, double > | getInterval (const double x) const |
|
std::pair< unsigned, double > | linearInterval (const double x) const |
|
double | coordinate (const unsigned i) const |
|
double | length () const |
|
unsigned | nIntervals () const |
|
double | intervalWidth (const unsigned i=0) const |
|
std::vector< double > | coords () const |
|
bool | operator== (const DualAxis &r) const |
|
bool | operator!= (const DualAxis &r) const |
|
const GridAxis * | getGridAxis () const |
|
const UniformAxis * | getUniformAxis () const |
|
void | setLabel (const char *newlabel) |
|
gs::ClassId | classId () const |
|
bool | write (std::ostream &of) const |
|
|
static const char * | classname () |
|
static unsigned | version () |
|
static DualAxis * | read (const gs::ClassId &id, std::istream &in) |
|
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.
◆ classId()
gs::ClassId npstat::DualAxis::classId |
( |
| ) |
const |
|
inline |
Method related to "geners" I/O
◆ getGridAxis()
const GridAxis* npstat::DualAxis::getGridAxis |
( |
| ) |
const |
|
inline |
Return a pointer to the underlying axis. This will be a null pointer if the axis does not correspond to the constructed type.
◆ setLabel()
void npstat::DualAxis::setLabel |
( |
const char * |
newlabel | ) |
|
|
inline |
The documentation for this class was generated from the following file: