|
lsst.afw g3a5ebb7d8a+28b83bf6a5
|
#include <Spline.h>
Public Member Functions | |
| SmoothedSpline (std::vector< double > const &x, std::vector< double > const &y, std::vector< double > const &dy, double s, double *chisq=nullptr, std::vector< double > *errs=nullptr) | |
| Cubic spline data smoother. | |
| void | interpolate (std::vector< double > const &x, std::vector< double > &y) const |
| Interpolate a Spline. | |
| void | derivative (std::vector< double > const &x, std::vector< double > &dydx) const |
| Find the derivative of a Spline. | |
| std::vector< double > | roots (double const value, double const x0, double const x1) const |
| Find the roots of Spline - val = 0 in the range [x0, x1). | |
Protected Member Functions | |
| void | _allocateSpline (int const nknot) |
| Allocate the storage a Spline needs. | |
Protected Attributes | |
| std::vector< double > | _knots |
| std::vector< std::vector< double > > | _coeffs |
| lsst::afw::math::detail::SmoothedSpline::SmoothedSpline | ( | std::vector< double > const & | x, |
| std::vector< double > const & | y, | ||
| std::vector< double > const & | dy, | ||
| double | s, | ||
| double * | chisq = nullptr, | ||
| std::vector< double > * | errs = nullptr ) |
Cubic spline data smoother.
Algorithm 642 collected algorithms from ACM. Algorithm appeared in Acm-Trans. Math. Software, vol.12, no. 2, Jun., 1986, p. 150.
Translated from fortran by a combination of f2c and RHL.
Author - M.F.Hutchinson
CSIRO Division of Mathematics and Statistics
P.O. Box 1965
Canberra, ACT 2601
Australia
latest revision - 15 August 1985
| [in] | x | array of length n containing the abscissae of the n data points (x(i),f(i)) i=0..n-1. x must be ordered so that x(i) < x(i+1) |
| [in] | y | vector of length >= 3 containing the ordinates (or function values) of the data points |
| [in] | dy | vector of standard deviations of y the error associated with the data point; each dy[] must be positive. |
| [in] | s | desired chisq |
| [out] | chisq | final chisq (if non-NULL) |
| [out] | errs | error estimates, (if non-NULL). You'll need to delete it |
|
protectedinherited |
|
inherited |
|
inherited |
| [in] | x | points to interpolate at |
| [out] | y | values of spline interpolation at x |
|
inherited |
|
protectedinherited |
|
protectedinherited |