Exemplo n.º 1
0
 /// <summary>
 /// Constructs Hilbert transformer. Transform <paramref name="size"/> must be a power of 2.
 /// </summary>
 public HilbertTransform64(int size = 512)
 {
     Size = size;
     _fft = new Fft64(size);
     _re  = new double[size];
     _im  = new double[size];
 }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="length">Size of Hilbert Transform</param>
        /// <param name="doublePrecision"></param>
        public HilbertTransform(int size = 1024, bool doublePrecision = true)
        {
            Size = size;

            if (doublePrecision)
            {
                _fft64 = new Fft64(size);
            }
            else
            {
                _fft32 = new Fft(size);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="length">Length of Hilbert Transform</param>
 public HilbertTransform(int length = 1024)
 {
     Length = length;
     _fft   = new Fft64(length);
 }