1 #ifndef NPSTAT_DUALAXIS_HH_
2 #define NPSTAT_DUALAXIS_HH_
39 const bool useLogSpace=
false)
43 const bool useLogSpace=
false)
52 inline double min()
const
55 inline double max()
const
64 inline std::pair<unsigned,double>
getInterval(
const double x)
const
82 inline std::vector<double>
coords()
const
89 {
return !(*
this ==
r);}
110 inline gs::ClassId
classId()
const {
return gs::ClassId(*
this);}
111 bool write(std::ostream& of)
const;
114 static inline const char*
classname() {
return "npstat::DualAxis";}
128 std::vector<double> vec(2, 0.0);
136 #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
DualAxis(unsigned nCoords, double min, double max, const char *label=0)
const GridAxis * getGridAxis() const
DualAxis(const std::vector< double > &coords, const bool useLogSpace=false)
unsigned nIntervals() const
double coordinate(const unsigned i) const
double intervalWidth(const unsigned i=0) const
DualAxis(const UniformAxis &u)
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
std::pair< unsigned, double > linearInterval(const double x) 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
const std::string & label() const
const std::vector< double > & coords() const
std::pair< unsigned, double > linearInterval(double coordinate) const
std::pair< unsigned, double > getInterval(const double x) const