Package samer.units

Class 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 by and the new data is added in.
    See Also:
    Serialized Form
    • 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
      • setHop

        public void setHop(int hop)
      • run

        public void run()
                 throws java.lang.Exception
        Throws:
        java.lang.Exception