LinearRange Class Reference

Linear-equidistant intervals. More...

#include <XeMath.h>

Inheritance diagram for LinearRange:
XeRange XeMath XeObject XeCore XeCore ErRange EventRange S1Range tValueRange VEscRange YRange

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:
index index

Implements XeRange.

int LinearRange::getIndex ( double  x  )  [virtual]

return index corresponding to a value

Parameters:
x input value

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:
x value to be converted
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:
x value to be converted

The documentation for this class was generated from the following file:
 All Classes Functions Variables

Generated on 10 Apr 2015 for Xephyr by  doxygen 1.6.1