NSCL DDAS
1.0
Support for XIA DDAS at the NSCL
|
Root finder based on linear interpolation. More...
#include <Solver.h>
Public Member Functions | |
virtual double | operator() (const std::deque< double > &que) const |
Interpolates between two points linear to find a zero crossing. More... | |
virtual unsigned int | npoints () const |
Number of points required for a unique solution. | |
Root finder based on linear interpolation.
|
virtual |
Interpolates between two points linear to find a zero crossing.
Locates the distance of the zero crossing from the first element in the que. The return value is to be interpreted as a fractional index. For example, if the argument contained two values, que[0]=0.75, que[1]=-0.25. The algorithm will treat this as two points (0,0.75) and (1,-0.25) and find the "x" value of the zero crossing.
Implements TrAnal::Solver.