Pietro Blandizzi

Results 8 comments of Pietro Blandizzi

Yes actually you are completely right. I am in the case you mentioned. Thank you for the answer. How could i do this for an uniform B-Spline? Could you help...

Hello, can you please tell me which of the classes i should modify in order to handle my case of independent variable not at fixed interval? thank you.

But if i have point in x y and my x data are not equally distributed and not equally spaced how can i relate those points with t? because then...

I am going to try. There are problems if you try to use float or double as InterpolationType due to some functions that assume arrays like this: auto segmentFunction =...

Maybe i am getting something wrong but i think you cant use as InterpolationType something that is not an array unless changing the templates and also the SplineInverter plus some...

I created the Generic spline with your idea. The position work but if i plot the derivatives it is completely wrong. Do you have an idea of the reason? Here...

` void GenericSpline::Fit(const std::vector& X, const std::vector& Y) { assert(X.size() == Y.size()); assert(X.size() > 2); std::vector knots; knots.push_back(-2.0); knots.push_back(-1.0); knots.push_back(0.0); data_.push_back(QVector2D(X.at(0), Y.at(0))); for(auto i = 0; i < X.size(); ++i)...

Thank you. I will try but just a question: The X and Y size should be the same or is it ok that Y[0] will correspond to X[0] which is...