unsuported/Eigen/Splines

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

unsuported/Eigen/Splines

AlexMI
This post has NOT been accepted by the mailing list yet.
Hi....I have to get the maximum value from a spline interpolation like in this matlab code:

curv_sp = interp1(pos_ord2,k_aux2,pos_ord2(1):.1:pos_ord2(length(pos_ord2)),'spline');
kmax = max(curv_sp);

Do someone know if there is any possibility to do same using  Eigen::SplineFitting?
I did like:

typedef Eigen::Spline<float, 1> spline1D;
...........................................................................................................................................................
Eigen::MatrixXf theKnotVect(1, 7);
Eigen::MatrixXf theCurvatureValues(1, 7);
Eigen::DenseIndex degree = 1;
............................................................................................................................................................
spline1D theSpline = Eigen::SplineFitting<spline1D>::Interpolate(theCurvatureValues, degree, theKnotVect);

..but now I don't know how to extract the max value from "theSpline"
Reply | Threaded
Open this post in threaded view
|

Re: unsuported/Eigen/Splines

AlexMI
This post has NOT been accepted by the mailing list yet.
Reformulating the last question, do someone know how can I access the size of "theSpline" or how can I iterate over the values from "theSpline"?...Thanks in advance!