LinearRange Class Reference
Linear-equidistant intervals.
More...
#include <XeMath.h>
List of all members.
Public Member Functions |
double | computeValue (double i) |
| compute value corresponding to partial bin number
|
double | computeValue (int i) |
| compute value corresponding to index
|
int | getIndex (double x) |
| return index corresponding to a value
|
pair< int, double > | getIndexAndFraction (double x) |
| Converts a value to a bin number and fraction returns bin -1 if outside the range.
|
pair< int, double > | getTolerantIndexAndFraction (double x) |
| Converts a value to a bin number and fraction Returns lowest of highest possible value if outside the range.
|
| LinearRange () |
| Void constructor for ROOT.
|
| LinearRange (string what, int n, double a, double b) |
| Regular constructor.
|
virtual | ~LinearRange () |
| Destructor.
|
Detailed Description
Linear-equidistant intervals.
Constructor & Destructor Documentation
LinearRange::LinearRange |
( |
string |
what, |
|
|
int |
n, |
|
|
double |
a, |
|
|
double |
b | |
|
) |
| | |
Regular constructor.
- Parameters:
-
| what | quantity in the range |
| n | nimber of values |
| a | lowest value |
| b | hightest value |
Member Function Documentation
double LinearRange::computeValue |
( |
double |
fractIndex |
) |
[virtual] |
compute value corresponding to partial bin number
- Parameters:
-
| fractIndex | fractional index |
Implements XeRange.
double LinearRange::computeValue |
( |
int |
index |
) |
[virtual] |
compute value corresponding to index
- Parameters:
-
Implements XeRange.
int LinearRange::getIndex |
( |
double |
x |
) |
[virtual] |
return index corresponding to a value
- Parameters:
-
Implements XeRange.
pair<int,double> LinearRange::getIndexAndFraction |
( |
double |
x |
) |
|
Converts a value to a bin number and fraction returns bin -1 if outside the range.
- Returns:
- pair representing the bin and the fraction
- Parameters:
-
pair<int,double> LinearRange::getTolerantIndexAndFraction |
( |
double |
x |
) |
|
Converts a value to a bin number and fraction Returns lowest of highest possible value if outside the range.
- Returns:
- pair representing the bin and the fraction
- Parameters:
-
The documentation for this class was generated from the following file:
- /home/lellouch/Dropbox/Xenon/Xephyr/XeMath.h