npstat::LinInterpolatedTable1D Class Reference
Detailed DescriptionThis class can be used to interpolate a table of values linearly in one dimension. Regular coordinate spacing only, double precision numbers are used to represent the data internally. Extrapolation beyond the leftmost or rightmost data points could be either linear or constant. Constructor & Destructor Documentation◆ LinInterpolatedTable1D() [1/4]
template<typename Real >
Constructor from a regularly spaced data. Extrapolation from the edge to infinity can be either linear or constant, as defined by the parameters "leftExtrapolationLinear" and "rightExtrapolationLinear". "npoints" (size of the data array) must be larger than 1. ◆ LinInterpolatedTable1D() [2/4]
template<typename Real >
Constructor from a list of points, not necessarily regularly spaced (but must be sorted in the increasing order). The first member of the pair is the x coordinate, the second is the tabulated function value. The input list will be interpolated to "npoints" internal points linearly. ◆ LinInterpolatedTable1D() [3/4]
Constructor which builds a function returning the given constant for every argument value ◆ LinInterpolatedTable1D() [4/4]
Default constructor builds a functor which always returns 0.0 Member Function Documentation◆ classId()
Method related to "geners" I/O ◆ inverse()
Generate the inverse lookup table. Note that it is only possible if the original table is monotonous (not taking into account possible flat regions at the edges). If the inversion is not possible, NULL pointer will be returned. The new table will have "npoints" points. The parameters "leftExtrapolationLinear" and "rightExtrapolationLinear" refer to the inverted table. Note that left and right will exchange places if the original table is decreasing. ◆ isMonotonous()
This method checks whether the table is monotonous (and, therefore, can be inverted). Possible flat regions at the edges are not taken into account. ◆ operator()()
Interpolate to the given coordinate ◆ operator==()
Comparison for equality (useful for I/O testing) ◆ xmin()
A simple inspector The documentation for this class was generated from the following file: Generated by 1.9.1 |