Example #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            var       cheb2_5  = CalculateCheb2Directly(5, 0.1);
            var       cheb2_8  = CalculateCheb2Directly(8, 0.1);
            var       cheb2_83 = CalculateCheb2Directly(8, 0.3);
            ChartForm chart    = new ChartForm(cheb2_5, "w", "", "Chebyshev-2 (direct calculation)", "N=5, E=0.1");

            chart.AddSeriresData(cheb2_8, "N=8, E=0.1");
            chart.AddSeriresData(cheb2_83, "N=8, E=0.3");
            chart.Show();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var       batt5     = CalculateBatterworthAFCDirectly(5);
            var       batt8     = CalculateBatterworthAFCDirectly(8);
            var       batt11    = CalculateBatterworthAFCDirectly(11);
            ChartForm battChart = new ChartForm(batt5, "w", "", "Batterworth (direct calculation)", "N=5");

            battChart.AddSeriresData(batt8, "N=8");
            battChart.AddSeriresData(batt11, "N=11");
            battChart.Show();
        }
Example #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            var       cheb1_5  = CalculateCheb1Directly(5, 0.5);
            var       cheb1_8  = CalculateCheb1Directly(8, 0.5);
            var       cheb1_52 = CalculateCheb1Directly(5, 0.2);
            var       cheb1_82 = CalculateCheb1Directly(8, 0.2);
            ChartForm chart    = new ChartForm(cheb1_5, "w", "", "Chebyshev-1 (direct calculation)", "N=5, E=0.5");

            chart.AddSeriresData(cheb1_8, "N=8, E=0.5");
            chart.AddSeriresData(cheb1_52, "N=5, E=0.2");
            chart.AddSeriresData(cheb1_82, "N=8, E=0.2");
            chart.Show();
        }
Example #4
0
        private void button5_Click(object sender, EventArgs e)
        {
            var       cheb_ch5  = CalculateCheb1(5, 0.5);
            var       cheb_ch8  = CalculateCheb1(8, 0.5);
            var       cheb_ch82 = CalculateCheb1(8, 0.2);
            ChartForm afcf      = new ChartForm(cheb_ch5.afc, "w", "", "chebyshev h(s) based afc", "N=5 E=0.5");

            afcf.AddSeriresData(cheb_ch8.afc, "N=8 E=0.5");
            afcf.AddSeriresData(cheb_ch82.afc, "N=8 E=0.2");
            afcf.Show();


            ChartForm ffcf = new ChartForm(cheb_ch5.ffc, "w", "", "chebyshev h(s) based ffc", "N=5 E=0.5");

            ffcf.AddSeriresData(cheb_ch8.ffc, "N=8 E=0.5");
            ffcf.AddSeriresData(cheb_ch82.ffc, "N=8 E=0.2");
            ffcf.Show();
        }
Example #5
0
        private void button4_Click(object sender, EventArgs e)
        {
            var       batt_ch5  = CalculateBatterworth(5);
            var       batt_ch8  = CalculateBatterworth(8);
            var       batt_ch11 = CalculateBatterworth(11);
            ChartForm afcf      = new ChartForm(batt_ch5.afc, "w", "", "batterwort h(s) based afc", "N=5");

            afcf.AddSeriresData(batt_ch8.afc, "N=8");
            afcf.AddSeriresData(batt_ch11.afc, "N=11");
            afcf.Show();


            ChartForm ffcf = new ChartForm(batt_ch5.ffc, "w", "", "batterwort h(s) based ffc", "N=5");

            ffcf.AddSeriresData(batt_ch8.ffc, "N=8");
            ffcf.AddSeriresData(batt_ch11.ffc, "N=11");
            ffcf.Show();
        }