Lines Matching refs:degree
31 * where \f$p\f$ is the degree and \f$m+1\f$ the number knots
35 * \param[in] degree The spline degree which is used during the interpolation.
41 void KnotAveraging(const KnotVectorType& parameters, DenseIndex degree, KnotVectorType& knots)
43 knots.resize(parameters.size()+degree+1);
45 for (DenseIndex j=1; j<parameters.size()-degree; ++j)
46 knots(j+degree) = parameters.segment(j,degree).mean();
48 knots.segment(0,degree+1) = KnotVectorType::Zero(degree+1);
49 knots.segment(knots.size()-degree-1,degree+1) = KnotVectorType::Ones(degree+1);
94 * \param degree The degree of the interpolating spline.
99 static SplineType Interpolate(const PointArrayType& pts, DenseIndex degree);
105 * \param degree The degree of the interpolating spline.
111 static SplineType Interpolate(const PointArrayType& pts, DenseIndex degree, const KnotVectorType& knot_parameters);
116 SplineType SplineFitting<SplineType>::Interpolate(const PointArrayType& pts, DenseIndex degree, const KnotVectorType& knot_parameters)
124 KnotAveraging(knot_parameters, degree, knots);
130 const DenseIndex span = SplineType::Span(knot_parameters[i], degree, knots);
133 A.row(i).segment(span-degree, degree+1) = SplineType::BasisFunctions(knot_parameters[i], degree, knots);
148 SplineType SplineFitting<SplineType>::Interpolate(const PointArrayType& pts, DenseIndex degree)
152 return Interpolate(pts, degree, chord_lengths);