1 #ifndef NPSTAT_DUALAXIS_HH_ 2 #define NPSTAT_DUALAXIS_HH_ 34 inline explicit DualAxis(
const std::vector<double>&
coords,
const bool useLogSpace =
false)
53 inline std::pair<unsigned, double>
getInterval(
const double x)
const {
95 inline gs::ClassId
classId()
const {
return gs::ClassId(*
this); }
96 bool write(std::ostream&
of)
const;
99 static inline const char*
classname() {
return "npstat::DualAxis"; }
100 static inline unsigned version() {
return 1; }
109 std::vector<double> vec(2, 0.0);
118 #endif // NPSTAT_DUALAXIS_HH_ static std::vector< double > dummy_vec()
std::pair< unsigned, double > linearInterval(double coordinate) const
bool operator==(const DualAxis &r) const
DualAxis(const GridAxis &g)
static const char * classname()
const std::string & label() const
DualAxis(const std::vector< double > &coords, const bool useLogSpace=false)
gs::ClassId classId() const
DualAxis(unsigned nCoords, double min, double max, const char *label=nullptr)
double intervalWidth(const unsigned i=0) const
DualAxis(const UniformAxis &u)
bool usesLogSpace() const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
bool usesLogSpace() const
DualAxis(const std::vector< double > &coords, const char *label, const bool useLogSpace=false)
const std::string & label() const
Non-uniformly spaced coordinate sets for use in constructing rectangular grids.
double coordinate(const unsigned i) const
double coordinate(const unsigned i) const
static DualAxis * read(const gs::ClassId &id, std::istream &in)
static unsigned version()
void setLabel(const char *newlabel)
std::pair< unsigned, double > getInterval(double coordinate) const
std::pair< unsigned, double > getInterval(const double x) const
const UniformAxis * getUniformAxis() const
bool operator!=(const DualAxis &r) const
void setLabel(const char *newlabel)
unsigned nIntervals() const
std::pair< unsigned, double > linearInterval(const double x) const
unsigned nIntervals() const
std::vector< double > coords() const
const std::vector< double > & coords() const
const GridAxis * getGridAxis() const
bool write(std::ostream &of) const
double intervalWidth(const unsigned i=0) const