Changeset 1648 for trunk/yat/regression/GSLInterpolation.h

Ignore:
Timestamp:
Dec 13, 2008, 10:28:39 AM (14 years ago)
Message:

Addresses #466. Added more GSL functionality, added constructor tests.

File:
1 edited

Unmodified
Added
Removed
• trunk/yat/regression/GSLInterpolation.h

 r1644 public: /** \brief Search index. This function returns the index \f\$ i \f\$ of the array \a x_array such that \f\$ x_array[i] <= x < x_array[i+1] \f\$. The index is searched for in the range \f\$ [index_lo, index_hi] \f\$. */ size_t bsearch(const double x_array[], double x, size_t index_lo, size_t index_hi) const; /** \a x. */ double evaluate(const double x) const; double evaluate(double x); /** \brief Calculate the derivative of the interpolated function at \a x. \return The derivative. */ double evaluate_derivative(double x); /** \brief Calculate the 2nd derivative of the interpolated function at \a x. \return The 2nd derivative. */ double evaluate_derivative2(double x); /** \brief Calculate the numerical integral of the interpolated function over the range \f\$ [a,b] \f\$. \return The integral. */ double evaluate_integral(double a, double b); /** \brief This function returns the minimum number of points required by the interpolation type. For example, Akima spline interpolation requires a minimum of 5 points. \return The minimum number of points required. */ unsigned int min_size(void) const; protected:
Note: See TracChangeset for help on using the changeset viewer.