Exemple #1
0
        private void initChart()
        {
            ChartSplitContainer1.BorderStyle = BorderStyle.Fixed3D;
            ChartSplitContainer2.BorderStyle = BorderStyle.Fixed3D;
            ChartSplitContainer3.BorderStyle = BorderStyle.Fixed3D;
            ChartSplitContainer4.BorderStyle = BorderStyle.Fixed3D;

            filtercollection = new FilterCollection();
            Form filterform = filtercollection.Process(new List <Tuple <string, double[], double[]> >());

            filterform.TopLevel        = false;
            filterform.FormBorderStyle = FormBorderStyle.None;
            filterform.Dock            = DockStyle.Fill;
            ChartSplitContainer1.Panel1.Controls.Add(filterform);
            filterform.Show();

            fftProcess = new fft();
            Form fftfrom = fftProcess.Process(new List <Tuple <string, double[], double[]> >());

            fftfrom.TopLevel        = false;
            fftfrom.FormBorderStyle = FormBorderStyle.None;
            fftfrom.Dock            = DockStyle.Fill;
            ChartSplitContainer3.Panel1.Controls.Add(fftfrom);
            fftfrom.Show();

            stftProcess = new STFTProcess();
            Form stftform = stftProcess.Process(new List <Tuple <string, double[], double[]> >());

            stftform.TopLevel        = false;
            stftform.FormBorderStyle = FormBorderStyle.None;
            stftform.Dock            = DockStyle.Fill;
            ChartSplitContainer3.Panel2.Controls.Add(stftform);
            stftform.Show();

            rmsprocess = new rmsProcess();
            Form rmsform = rmsprocess.Process(new List <Tuple <string, double[], double[]> >());

            rmsform.TopLevel        = false;
            rmsform.FormBorderStyle = FormBorderStyle.None;
            rmsform.Dock            = DockStyle.Fill;
            ChartSplitContainer4.Panel1.Controls.Add(rmsform);
            rmsform.Show();

            rulprocess = new rulProcess();
            Form rulform = rulprocess.Process(new List <Tuple <string, double[], double[]> >());

            rulform.TopLevel        = false;
            rulform.FormBorderStyle = FormBorderStyle.None;
            rulform.Dock            = DockStyle.Fill;
            ChartSplitContainer4.Panel2.Controls.Add(rulform);
            rulform.Show();
        }
Exemple #2
0
        private static fft.ComplexNumber[,] multiplyComplexNumberArray(ref fft.ComplexNumber[,] a, ref fft.ComplexNumber[,] b)
        {
            int x, y;
            fft.ComplexNumber[,] result;

            System.Diagnostics.Debug.Assert(a.GetLength(0) == b.GetLength(0));
            System.Diagnostics.Debug.Assert(a.GetLength(1) == b.GetLength(1));

            result = new fft.ComplexNumber[a.GetLength(0), a.GetLength(1)];

            for( y = 0; y < a.GetLength(1); y++ )
            {
                for( x = 0; x < a.GetLength(0); x++ )
                {
                    result[x, y] = a[x, y] * b[x, y];
                }
            }

            return result;
        }