Axis object in n-dimensional space.
More...
#include <Axis.hh>
|
enum | EMode { kAligned = 0
, kFixed = 1
} |
| Mode for axis. More...
|
|
|
| Axis (double min=0.0, double max=1.0, EMode mode=kAligned, double delta=1) |
|
virtual | ~Axis () |
|
void | print () const |
| Prints axis info.
|
|
void | find (double v, double &min, double &max, std::string &path, int levelrequest=-1, int levelmax=100) |
| Find bin and print info for given value.
|
|
void | expand (char direction='>', int power=1) |
| Expand range.
|
|
void | shrink (char direction='>', int power=1) |
| Shrink range.
|
|
void | min (double m) |
| Sets user defined minimum.
|
|
void | max (double m) |
| Sets user defined maximum.
|
|
void | is_bin (bool b) |
| Sets user defined maximum.
|
|
void | minmax (double min, double max) |
| Sets user defined minimum and maximum.
|
|
void | level (unsigned int l) |
| Sets level.
|
|
double | min () const |
| Returns user defined minimum.
|
|
double | max () const |
| Returns user defined maximum.
|
|
bool | is_bin () const |
| Returns user defined maximum.
|
|
double | maxb () const |
| Returns internal maximum.
|
|
double | maxb_user () const |
| Returns internal maximum2.
|
|
void | info (std::string i) |
| Sets info string.
|
|
std::string | info () const |
| Returns info string.
|
|
double | to_user (double v) const |
| Convert interal to user format.
|
|
double | to_internal (double v) const |
| Convert user to internal format.
|
|
unsigned int | level () const |
| Returns level.
|
|
void | split (std::vector< double > &mins, int level) |
|
|
int | decimels_right (double num, double mult=10, double min=0.01, double max=0.99) |
|
int | decimels_left (double num, double mult=10, double min=0.01) |
|
void | find (double &v, int &levelrequest, int &levelmax, int ¤tlevel, double &min, double &max, std::string &path) |
|
void | modify_range (char direction='>', int power=1) |
|
void | recalculate_range () |
|
|
double | mMin {0.0} |
| User defined minimum.
|
|
double | mMax {1.0} |
| User defined maximum.
|
|
bool | mIsBin {false} |
| Min max is in bin/user format.
|
|
EMode | mMode {kAligned} |
| Axis mode.
|
|
double | mMaxB {1} |
| Internal maximum.
|
|
double | mShift {0} |
| Shift to the internal min/max parameters.
|
|
double | mMultiply {1} |
| Multiply to the internal min/max parameters.
|
|
unsigned int | mLevel {0} |
| Level of division.
|
|
double | mMinDelta {1} |
| Minimal delta of axis range.
|
|
std::string | mInfo {} |
| Some additional info for axis.
|
|
Axis object in n-dimensional space.
- Author
- Martin Vala vala..nosp@m.mart.nosp@m.in@gm.nosp@m.ail..nosp@m.com
Definition at line 12 of file Axis.hh.
◆ EMode
Mode for axis.
Definition at line 15 of file Axis.hh.
◆ Axis()
NDM::Axis::Axis |
( |
double | min = 0.0, |
|
|
double | max = 1.0, |
|
|
EMode | mode = kAligned, |
|
|
double | delta = 1 ) |
◆ ~Axis()
Destructor
Definition at line 26 of file Axis.cc.
◆ decimels_left()
int NDM::Axis::decimels_left |
( |
double | num, |
|
|
double | mult = 10, |
|
|
double | min = 0.01 ) |
|
private |
◆ decimels_right()
int NDM::Axis::decimels_right |
( |
double | num, |
|
|
double | mult = 10, |
|
|
double | min = 0.01, |
|
|
double | max = 0.99 ) |
|
private |
◆ expand()
void NDM::Axis::expand |
( |
char | direction = '>', |
|
|
int | power = 1 ) |
Expand range.
Expand range by 2^power to left '<' or right '>' direction
Definition at line 156 of file Axis.cc.
References modify_range().
◆ find() [1/2]
void NDM::Axis::find |
( |
double & | v, |
|
|
int & | levelrequest, |
|
|
int & | levelmax, |
|
|
int & | currentlevel, |
|
|
double & | min, |
|
|
double & | max, |
|
|
std::string & | path ) |
|
private |
◆ find() [2/2]
void NDM::Axis::find |
( |
double | v, |
|
|
double & | min, |
|
|
double & | max, |
|
|
std::string & | path, |
|
|
int | levelrequest = -1, |
|
|
int | levelmax = 100 ) |
◆ info() [1/2]
std::string NDM::Axis::info |
( |
| ) |
const |
|
inline |
Returns info string.
Definition at line 54 of file Axis.hh.
References mInfo.
◆ info() [2/2]
void NDM::Axis::info |
( |
std::string | i | ) |
|
|
inline |
◆ is_bin() [1/2]
bool NDM::Axis::is_bin |
( |
| ) |
const |
|
inline |
Returns user defined maximum.
Definition at line 45 of file Axis.hh.
References mIsBin.
◆ is_bin() [2/2]
void NDM::Axis::is_bin |
( |
bool | b | ) |
|
|
inline |
◆ level() [1/2]
unsigned int NDM::Axis::level |
( |
| ) |
const |
|
inline |
◆ level() [2/2]
void NDM::Axis::level |
( |
unsigned int | l | ) |
|
|
inline |
◆ max() [1/2]
double NDM::Axis::max |
( |
| ) |
const |
|
inline |
◆ max() [2/2]
void NDM::Axis::max |
( |
double | m | ) |
|
|
inline |
Sets user defined maximum.
Definition at line 32 of file Axis.hh.
References mMax.
◆ maxb()
double NDM::Axis::maxb |
( |
| ) |
const |
|
inline |
Returns internal maximum.
Definition at line 47 of file Axis.hh.
References mMaxB.
Referenced by find().
◆ maxb_user()
double NDM::Axis::maxb_user |
( |
| ) |
const |
|
inline |
◆ min() [1/2]
double NDM::Axis::min |
( |
| ) |
const |
|
inline |
◆ min() [2/2]
void NDM::Axis::min |
( |
double | m | ) |
|
|
inline |
Sets user defined minimum.
Definition at line 30 of file Axis.hh.
References mMin.
◆ minmax()
void NDM::Axis::minmax |
( |
double | min, |
|
|
double | max ) |
Sets user defined minimum and maximum.
Setting min and max
Definition at line 74 of file Axis.cc.
References max(), min(), mMax, and mMin.
◆ modify_range()
void NDM::Axis::modify_range |
( |
char | direction = '>', |
|
|
int | power = 1 ) |
|
private |
◆ print()
void NDM::Axis::print |
( |
| ) |
const |
◆ recalculate_range()
void NDM::Axis::recalculate_range |
( |
| ) |
|
|
private |
◆ shrink()
void NDM::Axis::shrink |
( |
char | direction = '>', |
|
|
int | power = 1 ) |
Shrink range.
Shrink range by 2^power to left '<' or right '>' direction
Definition at line 164 of file Axis.cc.
References modify_range().
◆ split()
void NDM::Axis::split |
( |
std::vector< double > & | mins, |
|
|
int | level ) |
◆ to_internal()
double NDM::Axis::to_internal |
( |
double | v | ) |
const |
|
inline |
◆ to_user()
double NDM::Axis::to_user |
( |
double | v | ) |
const |
|
inline |
◆ mInfo
std::string NDM::Axis::mInfo {} |
|
private |
◆ mIsBin
bool NDM::Axis::mIsBin {false} |
|
private |
◆ mLevel
unsigned int NDM::Axis::mLevel {0} |
|
private |
◆ mMax
double NDM::Axis::mMax {1.0} |
|
private |
◆ mMaxB
double NDM::Axis::mMaxB {1} |
|
private |
◆ mMin
double NDM::Axis::mMin {0.0} |
|
private |
◆ mMinDelta
double NDM::Axis::mMinDelta {1} |
|
private |
Minimal delta of axis range.
Definition at line 74 of file Axis.hh.
Referenced by find().
◆ mMode
EMode NDM::Axis::mMode {kAligned} |
|
private |
◆ mMultiply
double NDM::Axis::mMultiply {1} |
|
private |
◆ mShift
double NDM::Axis::mShift {0} |
|
private |
The documentation for this class was generated from the following files: