Home | History | Annotate | Download | only in Splines

Lines Matching full:knots

25    * The knots are computed as
31 * where \f$p\f$ is the degree and \f$m+1\f$ the number knots
36 * \param[out] knots The output knot vector.
41 void KnotAveraging(const KnotVectorType& parameters, DenseIndex degree, KnotVectorType& knots)
43 knots.resize(parameters.size()+degree+1);
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);
123 KnotVectorType knots;
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);
143 return SplineType(knots, ctrls);