[Scilab-users] interp implementation

Luis Rodrigues lfrodrigues at gmail.com
Tue Jun 10 22:16:17 CEST 2014


Thanks Antoine,

I've also found this:
http://doxygen.scilab.org/master/d1/d31/someinterp_8c.html

Do you know what is the relation? Or which one is actually used?

Best,

Luis


On 10 June 2014 16:06, Antoine Monmayrant <antoine.monmayrant at laas.fr>
wrote:

>  On 06/10/2014 04:57 PM, Luis Rodrigues wrote:
>
>   Hi all,
>
> I'm using a cubic spline to calibrate a sensor, the code in scilab is as
> follows.
>
> n=10;
> x=linspace(min(dists(:,1)), max(dists(:,1)), n);
> [y, d] = lsq_splin(dists(:,1), dists(:,2), x);
> ys = interp(dists(:,1), x, y, d,'natural');
>
>
>  I would like to store x, y, d in an eeprom and calculate the calibrated
> value (basically running interp)
>  Could someone please tell me where I can find the implementation of
> interp so that I can implement it in Arduino?
>
>
> I think the source code is here:
>
> http://doxygen.scilab.org/master/d7/d3b/sci__interp_8c.html
>
> Hope it helps,
>
> Antoine
>
>
>  Best regards,
> Luis
>
>
>
> _______________________________________________
> users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users
>
>
>
> --
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>  Antoine Monmayrant LAAS - CNRS
>  7 avenue du Colonel Roche
>  BP 54200
>  31031 TOULOUSE Cedex 4
>  FRANCE
>
>  Tel:+33 5 61 33 64 59
>
>  email : antoine.monmayrant at laas.fr
>  permanent email : antoine.monmayrant at polytechnique.org
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140610/12348f02/attachment.htm>


More information about the users mailing list