public void RectangularWindowTest() { int length = 3; testWindow(length, RaisedCosineWindow.Rectangular(length)); testWindow(length, new RectangularWindow(length)); }
/// <summary> /// Splits a signal using a window /// </summary> /// /// <param name="signal">The signal to be splitted into windows.</param> /// <param name="step">The step size, in number of frames.</param> /// <param name="windowSize">The size of the window (in frames) when splitting the signal.</param> /// public static Signal[] Split(this Signal signal, int windowSize, int step) { return(signal.Split(RaisedCosineWindow.Rectangular(windowSize), step)); }