[Scilab-users] interp implementation

Antoine Monmayrant antoine.monmayrant at laas.fr
Tue Jun 10 17:06:17 CEST 2014


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 list
> users at lists.scilab.org
> http://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

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140610/e38ef39a/attachment.htm>


More information about the users mailing list