[Kst] Skip
Barth Netterfield
netterfield at astro.utoronto.ca
Mon Jan 24 14:30:00 CET 2005
The intent is to 'read 1 sample every x frames' which both versions do. Yours
reads from the middle. Have you identified any bugs in the current code?
cbn
On January 23, 2005 09:56 pm, George Staikos wrote:
> I have this [still under development] patch to kstrvector which I think
> fixes many little bugs in skip. Presently skip does some things that I
> consider strange. Behavior on a vector [0,1,2,...,11,12] does this for
> given skip values:
>
> skip=2
> 2,4,6,8,10
> skip=3
> 3,6,9
> skip=4
> 4,8
> skip=5
> 5
> skip=6
> 6
> skip=7
> 7
> skip=8
> 8
>
> I think the vectors should look like this, and my patch behaves
> accordingly: skip=2
> 1,3,5,7,9,11
> skip=3
> 2,5,8,11
> skip=4
> 3,7,11
> skip=5
> 4,9
> skip=6
> 5,11
> skip=7
> 6
> skip=8
> 7
>
> There is some numerical fudging in my patch also, but it only breaks down
> in the case where skip=1 (I think). I think doing skip where skip=1 is
> silly anyway, and so my patch disables skip when it's set to 1 (or less, as
> a sanity check).
>
> Any comments? I haven't tested this code with anything other than my
> "0..12" vector, and I haven't tested it with samplesPerFrame > 1. I guess
> it needs testing with various dirfiles.
More information about the Kst
mailing list