示例#1
0
        private void ProcessData(int WindowSize)
        {
            ArrayList Mf = new ArrayList();

            for (int left = 0; left + WindowSize < Data.Count; left += WindowSize / 2)
            {
                double[] temp = new double[WindowSize];
                temp = (double[])Data.GetRange(left, WindowSize).ToArray(typeof(double));
                RawTransform.Transform(ref temp);
                FPlot.AddData(temp);
                temp = RawTransform.getMFCC(temp);
                Mf.AddRange(temp);
            }
            if ((dataLength == 0) | (Mf.Count < dataLength))
            {
                dataLength = Mf.Count;
                TmpPlot.SelectView(0, dataLength);
            }
            DataBase.Add(Mf);

            TmpPlot.AddData(Mf);
            FPlot.DrawData();
            TmpPlot.DrawData();
        }