Lines Matching full: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)
45 knots.resize(parameters.size()+degree+1);
47 for (DenseIndex j=1; j<parameters.size()-degree; ++j)
48 knots(j+degree) = parameters.segment(j,degree).mean();
50 knots.segment(0,degree+1) = KnotVectorType::Zero(degree+1);
51 knots.segment(knots.size()-degree-1,degree+1) = KnotVectorType::Ones(degree+1);
96 * \param degree The degree of the interpolating spline.
101 static SplineType Interpolate(const PointArrayType& pts, DenseIndex degree);
107 * \param degree The degree of the interpolating spline.
113 static SplineType Interpolate(const PointArrayType& pts, DenseIndex degree, const KnotVectorType& knot_parameters);
118 SplineType SplineFitting<SplineType>::Interpolate(const PointArrayType& pts, DenseIndex degree, const KnotVectorType& knot_parameters)
127 KnotAveraging(knot_parameters, degree, knots);
133 const DenseIndex span = SplineType::Span(knot_parameters[i], degree, knots);
136 A.row(i).segment(span-degree, degree+1) = SplineType::BasisFunctions(knot_parameters[i], degree, knots);
151 SplineType SplineFitting<SplineType>::Interpolate(const PointArrayType& pts, DenseIndex degree)
155 return Interpolate(pts, degree, chord_lengths);