Questions tagged [sliding-window]

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. In networking, a sliding window may refer to a flow control technique that maintains windows of sequential frames sent or received without a corresponding acknowledgement.

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. In SQL in particular, the analytic functions LEAD(), LAG(), and computations OVER() a changing subset of query results involve sliding windows.

In networking, a sliding window may refer to a flow control technique that maintains windows of sequential frames sent or received without a corresponding acknowledgement.

583 questions
2
votes
1 answer

Matlab Image Processing Sliding Window SVM

I am trying to create a object detection SVM that can detect remote control calls rolling slowly on the floor. i am using HOG cpp script in matlab (via mex) and the SVM-Light library (http://svmlight.joachims.org/) i was wondering how i could go…
2
votes
1 answer

MySQL - Time Series Sliding Window

I have a MySQL table containing financial market prices. +------------+------+--------+--------+--------+--------+ | date | pair | open | high | low | close | +------------+------+--------+--------+--------+--------+ | 12/9/2009 | …
shankshera
  • 947
  • 3
  • 20
  • 45
2
votes
2 answers

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 hint or push in the right direction, just so I can get passed this section. "Why does the sending entity in TCP need to consider the size of…
Lumis
  • 27
  • 1
  • 2
  • 6
2
votes
1 answer

Sliding window algorithm in C#

I'm trying to implement simple sliding window alogirithm on two-dimensional array in C# 3.0, I found this as very useful but it involves only single-dimensioal array. The post also includes the code for the algo, I'm totaly failed to use it for my…
Prashant Cholachagudda
  • 13,012
  • 23
  • 97
  • 162
2
votes
3 answers

How to divide image into same size blocks?

I have an image and I want to divide it to same size blocks. For example image size is 16. I would like to divide my image they apply function ( such as SVD, DWT, Fourier transform ) on each block to search which blocks are similar to each other.…
Baran Barani
  • 21
  • 1
  • 2
1
vote
5 answers

div {position:absolute} renders at different locations on different width screens

I have made a sliding (S) window with jQuery animate() function. i.e. it slides left and right. $.animate({width:'toggle', opacity:'toggle'},2000,'swing',function(){ // ... }) It uses the following CSS when open. position:absolute; height:…
a_fan
  • 383
  • 2
  • 22
1
vote
0 answers

Does android sliding window support EditText field?

I have a sliding window view in my android application which contains 3 xml layouts. In one of the xml files i have an EditText field and a button below it. My problem is that i am not able to enter the values in EditText field even though i have…
S.K
  • 609
  • 1
  • 8
  • 14
1
vote
0 answers

Detecting the object from larger image using the grid block of image to train the model and predict in YOLOV8n

The code demonstrates the yolov8 model weights uploaded to predict the object in images. I have a problem using spherical image as input to predict the object, can anyone help in using sliding window approach for this code? import cv2 import numpy…
1
vote
1 answer

Given an array, find subarray that has one max possible value defined by subarray length times minimum

Let A be an array with N entries. We consider continuous subarrays of it, these must be continuous , meaning they start at some index I and end on some index J. Denote m(I,J) the minimum element of the subarray starting at I and ending on J…
kryomaxim
  • 119
  • 4
1
vote
0 answers

Generate example data for a deep learning model

for a deep learning project, before running my model on all my data I want to test it on artificial data. So I tried to create some data but I have a dimension problem. # Here, we create dummy data as an example num_frames = 12 num_examples =…
1
vote
0 answers

Sliding Window approach while finetuning BERT for NER task

I want to finetune a Bert model for an NER task using Hugging face transformers, but the problem is that most of my texts are longer than 512 and I don't prefer to truncate or chunk long texts. so I tried to implement a sliding window approach but…
1
vote
2 answers

Count subarrays in A with sum less than k

For the question below: Given an array A of N non-negative numbers and a non-negative number B,you need to find the number of subarrays in A with a sum less than B. I have found 2 solutions: Brute force: let count = 0; for (let i=0; i
Ashy Ashcsi
  • 1,529
  • 7
  • 22
  • 54
1
vote
2 answers

How to circle sliding window?

How do I make a slide with last element and some of firsts. You might not get my question, so I better give you an example. In this array:{1, 2, 5, 4, 3} If I try to find the min sum of 3 numbers, it checks the slides: {1, 2, 5}, {2, 5, 4}, {5, 4,…
dfgl
  • 21
  • 2
1
vote
1 answer

Count number of unique observations last 6 months (for every observation)

How would you solve the following problem in R / tidyverse?: sample data: tibble( date = seq(as.Date(paste0("2010-01-",runif(1,1,25))), by = "month", length.out = 24), machine_ID = sample(letters[1:10],size = 24,replace = T), machine_cat =…
MariusJ
  • 71
  • 6
1
vote
1 answer

Finding imbalance in all sliding window permutations of an array

I have this coding question, that i was unable to complete Given an array, find all the subarrays, of length 1 <= k <= len(arr) and find imbalance in those subarrays Imbalance is when the difference between two neighboring items in a sorted array is…
Sharhad
  • 11
  • 3