[Kst] [Kst-plot/kst] a31970: Vectors get iMax and iMin scalars

Nicolas Brisset nicolas.brisset at free.fr
Sun Nov 9 12:05:00 UTC 2014

I had implemented this as well, but from what it seems I had forgotten to push my local commit.
Not a big deal as it's a fairly trivial change.
On thing I wondered about though is how to handle the case of multiple min/max values.
The way you did it, if the max (for instance) is obtained for may values, you will get the first index.
I don't know what's better: we could also keep the last index.

Are there any opinions on that? 


----- Mail original -----
> De: "Barth Netterfield" <netterfield at astro.utoronto.ca>
> À: kst at kde.org
> Envoyé: Dimanche 9 Novembre 2014 10:00:08
> Objet: [Kst] [Kst-plot/kst] a31970: Vectors get iMax and iMin scalars
> Branch: refs/heads/master
>   Home:   https://github.com/Kst-plot/kst
>   Commit: a319703a76e27b30b3b6c122c708583132421939
>       https://github.com/Kst-plot/kst/commit/a319703a76e27b30b3b6c122c708583132421939
>   Author: Barth Netterfield <netterfield at astro.utoronto.ca>
>   Date:   2014-11-09 (Sun, 09 Nov 2014)
>   Changed paths:
>     M src/datasources/ascii/asciisource.cpp
>     M src/libkst/vector.cpp
>     M src/libkst/vector.h
>   Log Message:
>   -----------
>   Vectors get iMax and iMin scalars
> BUG: 339194
> Now you can use the index of the max and min of a vector.
> To create a label with the X value coresponding to YMax use,
> for example:
> [INDEX (V1)[[AZ:iMax (X26)]]]
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst

More information about the Kst mailing list