From: Samay Kumar on
Dear friends,

I have a bivariate look-up table which I parameterised with cubic spline interpolant (i.e., csapi()). I am able to evaluate range of given two variable with found "ppform" structure and "ppual()" method.

As I get satisfiable result in MATLAB, I want to mimic functionality of ppual() in my C++ code to have better speed for real time application. Though I would like to use same co-efficients (with MATLAB functions) of approximated spline to evaluate given variable instances in C++ code. I guess calling matlab functions from C++ code would not be useful as it won't make any speed optimization.

I want to ask if any body can suggest what is happening behind "ppual()" function. Found "ppform" structure look like...
_______________________________________________
>> pp
pp =

form: 'pp'
breaks: {[1x100 double] [1x100 double]}
coefs: [1x396x396 double]
pieces: [99 99]
order: [4 4]
dim: 1
_______________________________________________

Any suggestion would be helpful. Even information of any C++ library to approximate and evaluate bivariate cubic spline will be useful.

Thank you in advance.

Greetings,
Samay
 | 
Pages: 1
Prev: to replace intensity values
Next: fmincon problem