I'm trying to calculate the short term energy of a digital signal in python, using a rectangular window, but don't understand the basics of how this works, a pointer to any good explanation would be great.
Specific things I'm confused about:
Where do I initialise the window? (at position 0,window_length, or -window_length,0, and then work through the signal? ...)
If I sum up the squares of all samples at every position inside the window, don't I end up with a 'square signal', where all the values are the same for the length of the window step?