24 #ifndef LSST_MEAS_MODELFIT_DETAIL_polynomials_h_INCLUDED 25 #define LSST_MEAS_MODELFIT_DETAIL_polynomials_h_INCLUDED 29 namespace lsst {
namespace meas {
namespace modelfit {
namespace detail {
43 static RowVector
eval(
double x);
55 static RowVector
moment(
double x0,
double x1,
int m=0);
61 Eigen::Vector4d
solveRampPoly(
double v0,
double v1,
double x0,
double x1,
double s0,
double s1);
65 #endif // !LSST_MEAS_MODELFIT_DETAIL_polynomials_h_INCLUDED static RowVector moment(double x0, double x1, int m=0)
Return a row vector whose product with a polynomial coefficient vector computes the integral of p(x) ...
static RowVector differentiate2(double x)
Return a row vector whose product with a polynomial coefficient vector evaluates the second derivativ...
Eigen::Matrix< double, 1, N > RowVector
Eigen::Vector4d solveRampPoly(double v0, double v1, double x0, double x1, double s0, double s1)
Solve for the coefficients of a cubic polynomial p(x) that goes from p(x0)=v0 to p(x1)=v1, with p'(x0)=s0 and p'(x1)=s1.
static RowVector differentiate1(double x)
Return a row vector whose product with a polynomial coefficient vector evaluates the first derivative...
static RowVector eval(double x)
Return a row vector that product with a polynomial coefficient vector[ evaluates the polynomial at x...
Class that computes rows of the Vandermonde matrix and related matrices; the dot product of these row...