Package samer.units
Class OverlapAndAdd
- java.lang.Object
-
- samer.tools.AnonymousTask
-
- samer.tools.NamedTask
-
- samer.units.OverlapAndAdd
-
- All Implemented Interfaces:
- Task
public class OverlapAndAdd extends NamedTask
Overlap and add input vectors into a buffer. At each iteration, the buffer is shifted byand the new data is added in. - See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description OverlapAndAdd(VVector input, int hop)Create overlap and add buffer for input vector with given hop size
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddispose()VVectorinput()VVectoroutput()voidrun()voidsetHop(int hop)voidsetWindow(Function fn)Sets windowing array to samples from the given function.-
Methods inherited from class samer.tools.AnonymousTask
starting, stopping
-
-
-
-
Constructor Detail
-
OverlapAndAdd
public OverlapAndAdd(VVector input, int hop) throws java.lang.Exception
Create overlap and add buffer for input vector with given hop size- Throws:
java.lang.Exception
-
-
Method Detail
-
setWindow
public void setWindow(Function fn)
Sets windowing array to samples from the given function. The domain [0,1) is mapped on to the array indices 0:N-1
-
input
public VVector input()
-
output
public VVector output()
-
setHop
public void setHop(int hop)
-
dispose
public void dispose()
-
run
public void run() throws java.lang.Exception- Throws:
java.lang.Exception
-
-