<div><div class="gmail_quote">On Sat, Jul 21, 2012 at 7:25 AM, Nicolas Brisset <span dir="ltr"><<a href="mailto:nicolas.brisset@free.fr" target="_blank">nicolas.brisset@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I've been using Kst lately to check the performance of some sensors against a known reference.<br>
Basically, what I do is: compute the error (difference between the 2 signals), plot a histogram and compute the 2-sigma value of the error distribution.<br>
Where it hurts is that I have to do quite a few operations on each vetor. It's always the same, and quickly becomes tedious with the increasing number of vectors.<br>
What I'd dream of is being able to write a scripting function like checkAgainstReference(new_curve, reference_curve, new_column = true) which would:<br>
1) check that x vectors and lengths are compatible<br>
2) extract the y vectors from the curves<br>
3) compute a new vector which is the difference of the previous y vectors<br>
4) plot a histogram of the error<br>
4) compute the absolute value of the error (without plotting)<br>
5) compute a histogram of the absolute value of the error<br>
6) compute a cumulative sum of the previous<br>
7) create a new curve plotting the cumulative sum against the bin (x) vector of the histogram<br>
8) create a new curve checking when the cumulative sum reaches 95%<br>
9) use the 95% curve as a x-marker with a dotted red line in the cumulative sum plot<br>
10) put all that either in a new column of a given tab (third arg at true), or create a new tab<br>
<br>
I can do all this manually and it works fine once you've figured out some of the details I left out here for the sake of brevity, so the question is not whether Kst can do it.<br>
I haven't really checked scripting yet, so the question is: could it solve my issue of having to repeat all those operations a large number of times? That would be totally awesome and make my colleague doing this in scilab pale with envy!<br>

<br>
Nicolas<br>
_______________________________________________<br>
Kst mailing list<br>
<a href="mailto:Kst@kde.org">Kst@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kst" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
</blockquote></div><br>This is exactly the kind of thing that the scripting was made for.  If you could try to implement this, it would be a huge step forward in debugging it and looking for capability gaps.<div><br></div>
<div>I'm going to be tied up here in the field for another 3 weeks at least, but can answer very brief questions like this though :-)</div><div><br></div>-- <br><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)">C. Barth Netterfield<br>
University of Toronto<br>416-845-0946</span><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)"><br></span></div><br>
</div>