I have an array of length 4096 It contains the results of the calculated FFT. Results should be displayed on a window length of 1024 How to reduce the value from 4096 to 1024 and that the results remain correct.
Is this a good way?
int index = 0;
for(int i = 0; i < 1024; i++){
A = 0;
windowOffset = oldLength/1024; ---> 4096/1024 = 4
while(windowOffset > 0){
A += oldArray[index];
windowOffset --;
index++ -----> index will go to 4096
}
newArray[i] =A/(blockSize/1024); ---- summ of 4 values/4
}