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