<div dir="ltr"><div><div>Thanks Antoine,<br><br>I've also found this:<br><a href="http://doxygen.scilab.org/master/d1/d31/someinterp_8c.html">http://doxygen.scilab.org/master/d1/d31/someinterp_8c.html</a><br><br></div>
Do you know what is the relation? Or which one is actually used?<br><br></div>Best,<br><br>Luis<br><div class="gmail_extra"><br><br><div class="gmail_quote">On 10 June 2014 16:06, Antoine Monmayrant <span dir="ltr"><<a href="mailto:antoine.monmayrant@laas.fr" target="_blank">antoine.monmayrant@laas.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<div>On 06/10/2014 04:57 PM, Luis Rodrigues
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>Hi all,<br>
<br>
I'm using a cubic spline to calibrate a sensor, the code
in scilab is as follows. <br>
<br>
n=10;<br>
x=linspace(min(dists(:,1)), max(dists(:,1)), n);<br>
[y, d] = lsq_splin(dists(:,1), dists(:,2), x);<br>
ys = interp(dists(:,1), x, y, d,'natural');<br>
<br>
<br>
</div>
I would like to store x, y, d in an eeprom and calculate the
calibrated value (basically running interp)<br>
</div>
Could someone please tell me where I can find the
implementation of interp so that I can implement it in
Arduino?<br>
</div>
</div>
</blockquote>
<br></div></div>
I think the source code is here:<br>
<br>
<a href="http://doxygen.scilab.org/master/d7/d3b/sci__interp_8c.html" target="_blank">http://doxygen.scilab.org/master/d7/d3b/sci__interp_8c.html</a><br>
<br>
Hope it helps,<br>
<br>
Antoine<br>
<blockquote type="cite">
<div dir="ltr">
<div>
<br>
</div>
Best regards,<br>
Luis<br>
<div>
<div><br clear="all">
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
users mailing list
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre cols="72">--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Antoine Monmayrant LAAS - CNRS
7 avenue du Colonel Roche
BP 54200
31031 TOULOUSE Cedex 4
FRANCE
Tel:<a href="tel:%2B33%205%2061%2033%2064%2059" value="+33561336459" target="_blank">+33 5 61 33 64 59</a>
email : <a href="mailto:antoine.monmayrant@laas.fr" target="_blank">antoine.monmayrant@laas.fr</a>
permanent email : <a href="mailto:antoine.monmayrant@polytechnique.org" target="_blank">antoine.monmayrant@polytechnique.org</a>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
</pre>
</div>
<br>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>