OpenViBE forum

The OpenViBE community
It is currently Fri Nov 16, 2018 11:59 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Jun 29, 2018 9:56 am 
Offline

Joined: Thu Jun 28, 2018 11:23 am
Posts: 8
Hi, everybody,

I have a question about two plugins: windowing and time based epoching.
As I understand it, but it doesn't look like it, hanning windowing for example allows to work on a finished signal in time and epoching allows to cut the signal in time.
So I don't understand why some examples use time based epoching or the hanning window but not both? Is it the same function?

Thank you very much and good end of the day.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 02, 2018 7:46 am 
Offline

Joined: Tue Dec 04, 2012 3:53 pm
Posts: 764
Location: INRIA Rennes, FRANCE
Hi,

Epoching slices the signal in different ways (you can think of it as implementing a sliding window with different step sizes), whereas Windowing applies a coefficient mask on each signal chunk. Both names are due to historical reasons.

If you have single channel signal chunk [x(1),...,x(k)] for chunk size k, then the output of windowing is

[w(1)x(1) w(2)x(2) ... w(k)x(k)],

where the coefficients of w depend on which window function you choose. Windowing is usually used to avoid/mitigate border artifacts by dampening the signal towards zero at both ends. You can google for it.


Hope this helps,
Jussi


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 02, 2018 8:41 am 
Offline

Joined: Thu Jun 28, 2018 11:23 am
Posts: 8
Hi and thanks for your answer,

Actually I've already read a lot of doc about windowing and epoching, what I don't understand is if the two functions are independent or complementary. Because I understand that windowing is used for edge artifacts. So if I want to do a good treatment before doing a spectral analysis, I have to use the windowing on each epoch to smooth the edges and have a nice fft?

Merci beaucoup et bonne fin de journée ;)


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 02, 2018 8:49 am 
Offline

Joined: Tue Dec 04, 2012 3:53 pm
Posts: 764
Location: INRIA Rennes, FRANCE
In OV, signal is always implicitly epoched even if you're not aware of it: the data is always passed on from box to another in small matrix chunks. In OV, the 'epoch size' and 'chunk size' are the same thing, and mean the number of columns in small data matrices that are passed around. For example, data coming from the Acquisition Server by default has chunk size of 32 samples ('sample count sent per block').If you run Windowing without epoching, you're doing weighting of 32 sample buffers. Different epoching boxes can be used to change this chunk size for your data.

So the methods are independent in a way that you can use neither, either, or both, depending on what you want.


Good luck!
Jussi


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 02, 2018 9:14 am 
Offline

Joined: Thu Jun 28, 2018 11:23 am
Posts: 8
Thanks a lot,

I try to make a graph of the power of the different types of waves as a function of time. I thought I was averaging the fft powers so I was wondering if I should place a hanning window between epoching and spectral analysis.
Anyway, thank you very much for your very quick answers.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Americanized by Maël Soucaze.