icicle-lang / icicle-ambiata

A streaming query language.
BSD 3-Clause "New" or "Revised" License
57 stars 11 forks source link

Sliding windows and window frames #82

Open HuwCampbell opened 9 years ago

HuwCampbell commented 9 years ago

It would be useful to have a sliding function which one can fold over. For example, apart: feature age ~> sliding 2 ~> would give access to a stream of two values at a time, so the difference in the date could be looked at for example, or how large the differences are.

HuwCampbell commented 9 years ago

Had a hack today on trying this with just case expressions, but without higher order functions I don't think it's possible.

amosr commented 9 years ago

I think we can still write meaningful expressions without this, so let's leave this for now

amosr commented 8 years ago

there is a branch that started work on window frames, but was not finished. this will be worth coming back to eventually, but for now Source is expressive enough to focus on Ivory integration. https://github.com/ambiata/icicle/tree/topic/window-frames