[Kst] Interpolation

Steve Maher Stephen.F.Maher at nasa.gov
Tue May 13 11:50:48 UTC 2014


All,

Thank you for your responses.

I tried Nicholas' suggestion of skipping over the NaN's,  but the resulting
interpolations (I tried three types) had funny results.   Attached is an
example.

I'm very curious to see a standard use case for interpolation, actually.

I also tried Peter's suggestion but no matter what I selected in the radio
box (zero, NaN, last value), the resulting data (the missing samples) were
always a NaN (at least in 2.0.8rc2)

Steve



On Tue, May 13, 2014 at 4:11 AM, Peter Kümmel <syntheticpp at gmx.net> wrote:

> On 13.05.2014 09:46, Peter Kümmel wrote:
>
>> On 13.05.2014 08:33, Brisset, Nicolas wrote:
>>
>>> Hi Steve,
>>>
>>> I tried it as well and noticed the same as Barth. Even if the plugin
>>> does not always crash, it returns NaN vectors. We
>>> need to fix the crash, but for the NaNs the best we can do is probably
>>> skip (or interpolate) them as Barth suggested.
>>> However, I have one hint for your case where actually the sampling is
>>> different: you could use the range settings to
>>> skip every other point on reading the vector.
>>> In the page where you select the type of plots and the ranges (after
>>> you've selected the vectors), in the upper part
>>> you could set Start to 0, and click the "Read 1 sanple per" box and set
>>> 2 frames in the spinbox right to it. Then kst
>>> skips the NaNs.
>>>
>>> Nicolas
>>>
>>
>> There are already radio boxes to select what number to use when a string
>> could not be parsed,
>> we could this setting also use for non-existing numbers: null, nan, or
>> last value.
>>
>>
> Changed it to this.
>
>
>  Peter
>>
>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: kst-bounces at kde.org [mailto:kst-bounces at kde.org] Im Auftrag von
>>> Barth Netterfield
>>> Gesendet: Montag, 12. Mai 2014 22:50
>>> An: kst at kde.org
>>> Betreff: Re: [Kst] Interpolation
>>>
>>> Hi Steve,
>>>
>>> Hmm.... Unfortunately, it turns out that Kst does not really support
>>> your case here :-(
>>>
>>> The missing values are interpreted as NaNs (which seems pretty
>>> reasonable).
>>> But the interpolation plugin does not support NaNs (and crashes).
>>>
>>> The crashes in the existing plugins are bugs which should be fixed.  I
>>> think the fix could be done so that it would
>>> automatically be able to have them interpolate over NaNs.
>>>
>>> So: Could you submit this as a bug so we don't forget about it?
>>>
>>> cbn
>>>
>>> On May 10, 2014 5:36:57 PM Steve Maher wrote:
>>>
>>>  Hi all,
>>>>
>>>> I can't seem to perform any interpolations.   My test crashes on
>>>> 2.0.7-1 on
>>>> Ubuntu and 2.0.8rc2 on Windows 8.1.
>>>>
>>>> Attached (and below) is my (ASCII)  test case.  There are 13 values in
>>>> vector 'a' (and INDEX, of course).  There are seven values in vectors
>>>> 'b'
>>>> and 'bi'.  Vector 'bi' contains index numbers for vector b.  Looking
>>>> at the data you can see the intention is that vector b has values for
>>>> every other 'a' value and bi is the index of those values relative to
>>>> 'a'.
>>>>
>>>> My goal is to interpolate 'b' so that it has the same number of
>>>> samples as 'a', then use 'b' as an X axis of a curve with 'a' as the Y
>>>> axis.
>>>>
>>>> So I try interpolating with Input Vector X = bi, Input Vector Y = b,
>>>> and Input Vector X' = INDEX.  This crashes no matter which
>>>> interpolation plugin I use.
>>>>
>>>> Seeing NaN's when looking at the 'b' and 'bi' vectors may be an issue.
>>>>   However, I'm assuming since there are interpolation plugins there
>>>> must be SOME way to have vectors of varying lengths.
>>>>
>>>> I must be missing something.
>>>>
>>>> Thanks for any tips,
>>>> Steve
>>>>
>>>> a b bi
>>>> 112.5 428 0
>>>> 187.5
>>>> 262.5 345 2
>>>> 337.5
>>>> 412.5 119 4
>>>> 487.5
>>>> 567.5 162 6
>>>> 637.5
>>>> 712.5 211 8
>>>> 787.5
>>>> 862.5 292 10
>>>> 937.5
>>>> 100.5 623 12
>>>>
>>>
>>> --
>>> Barth Netterfield
>>> University of Toronto
>>> 416-845-0946
>>> _______________________________________________
>>> Kst mailing list
>>> Kst at kde.org
>>> https://mail.kde.org/mailman/listinfo/kst
>>> AIRBUS HELICOPTERS DEUTSCHLAND GmbH
>>> Sitz der Gesellschaft / Registered Office: Donauwörth
>>> Registergericht / Registration Court: Amtsgericht Augsburg HRB 16508
>>> Vorsitzender des Aufsichtsrates / Chairman of the Supervisory Board:
>>> Guillaume Faury
>>> Geschäftsführung / Board of Management:
>>> Dr. Wolfgang Schoder, Vorsitzender / CEO; Friedrich-Wilhelm Hormel; Ralf
>>> Barnscheidt; Oliver Schenzle
>>>
>>>
>>> CONFIDENTIALITY NOTICE
>>>
>>> This communication and the information it contains is intended for the
>>> addressee ( s ) named above and for no other
>>> persons or organizations.
>>> It is confidential and may be legally privileged and protected by law.
>>> The unauthorized use, copying or disclosure of
>>> this communication
>>> or any part of it is prohibited and may be unlawful.
>>> If you have received this communication in error, kindly notify us by
>>> return e-mail and discard and/or delete the
>>> communication.
>>> Thank you very much.
>>> It is possible for e-mails to be intercepted or affected by viruses.
>>> Whilst we maintain virus checks on our e-mails,
>>> we accept no liability for viruses
>>> or other material which might be introduced with this message.
>>> _______________________________________________
>>> Kst mailing list
>>> Kst at kde.org
>>> https://mail.kde.org/mailman/listinfo/kst
>>>
>>>
>> _______________________________________________
>> Kst mailing list
>> Kst at kde.org
>> https://mail.kde.org/mailman/listinfo/kst
>>
>>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kst/attachments/20140513/f47eda7b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kst.png
Type: image/png
Size: 57247 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kst/attachments/20140513/f47eda7b/attachment-0001.png>


More information about the Kst mailing list