Home | History | Annotate | Download | only in Splines

Lines Matching defs: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)
45 knots.resize(parameters.size()+degree+1);
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);
126 KnotVectorType knots;
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);
146 return SplineType(knots, ctrls);