Top "Sliding-window" questions

In data analysis, sliding windows are advancing sub-lists inside lists which allow, e.g., computation of a record's change from the previous record or next record.

What is Sliding Window Algorithm? Examples?

While solving a geometry problem, I came across an approach called Sliding Window Algorithm. Couldn't really find any study material/…

algorithm sliding-window
sliding window of M-by-N shape numpy.ndarray

I have a numpy array of shape (6,2) [[00,01], [10,11], [20,21], [30,31], [40,41], [50,51]] I need a sliding window with step size 1 and window size 3 likes this: [[00,01,10,11,20,21], [10,11,20,21,30,31], [20,21,30,31,40,41], [30,31,40,41,50,51]] …

python numpy time-series sliding-window
Simulate lag function in MySQL

| time | company | quote | +---------------------+---------+-------+ | 0000-00-00 00:00:00 | GOOGLE | 40 | | 2012-07-02 21:28:05 | GOOGLE | 60 | | 2012-07-02 21:28:51 | SAP | 60 | | 2012-07-02 21:29:05 | SAP | 20 | How do …

mysql sql sliding-window
How to use a timer in C++ to force input within a given time?

I want to implement a time out feature in C++. If the user does not input the value within 2 seconds …

c++ timer sliding-window
How can I simply calculate the rolling/moving variance of a time series in python?

I have a simple time series and I am struggling to estimate the variance within a moving window. More specifically, …

python numpy time-series variance sliding-window
Sliding window in R

I have a dataframe DF, with two columns A and B shown below: A B 1 0 3 0 4 0 2 1 6 0 4 1 7 1 8 1 1 0 A sliding window approach is …

r dataframe sliding-window
SQL Server: Lead/Lag analytic function across groups (and not within groups)

Sorry for the long post, but I have provided copy & paste sample data and a possible solution approach below. …

sql-server sql-server-2012 lag sliding-window lead
Android Sliding Up View

I need to do a Sliding Up View wich should slide up from the bottom of the screen when I …

android android-custom-view slidingdrawer custom-view sliding-window
BigQuery SQL for 28-day sliding window aggregate (without writing 28 lines of SQL)

I'm trying to compute a 28 day moving sum in BigQuery using the LAG function. The top answer to this question …

sql google-bigquery sliding-window
TCP Congestion Window Size

I'm going through some revision and I've been stumped by a TCP question. Maybe someone can give me a quick …

tcp window size sliding-window congestion-control