Example #1
0
 private static DCT GetDct(double[] y)
 {
     if (Dcts == null)
         Dcts = new Dictionary<int, DCT>();
     var N = y.Length;
     if (!Dcts.ContainsKey(N))
         Dcts[N] = new DCT(N);
     return Dcts[N];
 }
Example #2
0
        private static DCT GetDct(double[] y)
        {
            if (Dcts == null)
            {
                Dcts = new Dictionary <int, DCT>();
            }
            var N = y.Length;

            if (!Dcts.ContainsKey(N))
            {
                Dcts[N] = new DCT(N);
            }
            return(Dcts[N]);
        }