예제 #1
0
        /// <summary>
        /// Returns the window function.
        /// </summary>
        /// <param name="frameSize">Window size</param>
        /// <returns>Array</returns>
        public override float[] GetWindow(int frameSize)
        {
            float t = (frameSize - 1) / 2.0f;

            float[] x = Matrice.Compute(-t, t, 1);
            return(this.Function(x, frameSize));
        }
예제 #2
0
        /// <summary>
        /// Returns the window function.
        /// </summary>
        /// <returns>Array</returns>
        public override float[] GetWindow(int frameSize)
        {
            // window function on a discrete time:
            float t = frameSize - 1;

            float[] x = Matrice.Compute(0, t, 1);
            return(this.Function(x, frameSize));
        }
예제 #3
0
파일: Nuttall.cs 프로젝트: asiryan/UMapx
 /// <summary>
 /// Returns the window function.
 /// </summary>
 /// <param name="frameSize">Window size</param>
 /// <returns>Array</returns>
 public override float[] GetWindow(int frameSize)
 {
     float t = frameSize - 1;
     float[] x = Matrice.Compute(0, t, 1);
     return this.Function(x, frameSize);
 }