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()
unsigned nIntervals() const
gs::ClassId classId() const
DualAxis(const GridAxis &g)
static const char * classname()
std::pair< unsigned, double > getInterval(double coordinate) const
double intervalWidth(const unsigned i=0) const
const std::string & label() const
const GridAxis * getGridAxis() const
DualAxis(const std::vector< double > &coords, const bool useLogSpace=false)
DualAxis(unsigned nCoords, double min, double max, const char *label=nullptr)
unsigned nIntervals() const
double coordinate(const unsigned i) const
double intervalWidth(const unsigned i=0) const
DualAxis(const UniformAxis &u)
std::pair< unsigned, double > getInterval(const double x) 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
double coordinate(const unsigned i) const
DualAxis(const std::vector< double > &coords, const char *label, const bool useLogSpace=false)
std::vector< double > coords() const
Non-uniformly spaced coordinate sets for use in constructing rectangular grids.
bool operator!=(const DualAxis &r) const
const UniformAxis * getUniformAxis() const
bool usesLogSpace() const
bool operator==(const DualAxis &r) const
static DualAxis * read(const gs::ClassId &id, std::istream &in)
static unsigned version()
void setLabel(const char *newlabel)
void setLabel(const char *newlabel)
bool usesLogSpace() const
bool write(std::ostream &of) const
std::pair< unsigned, double > linearInterval(const double x) const
const std::string & label() const
const std::vector< double > & coords() const
std::pair< unsigned, double > linearInterval(double coordinate) const