예제 #1
0
        private void policzA(SygnalCiagly A)
        {
            LineSeries mySeries = new LineSeries();

            mySeries.Title = "Amplituda";
            mySeries.IndependentValueBinding = new Binding("Key");
            mySeries.DependentValueBinding   = new Binding("Value");
            punkty = new List <KeyValuePair <double, double> >();
            for (int i = 0; i < A.x.Count; i++)
            {
                punkty.Add(new KeyValuePair <double, double>(A.x[i].Real, A.y[i].Real));
            }
            mySeries.ItemsSource = punkty;

            AmplitudaRzeczywista.Series.Add(mySeries);
            LineSeries mySeries2 = new LineSeries();

            mySeries2.Title = "Amplituda";
            mySeries2.IndependentValueBinding = new Binding("Key");
            mySeries2.DependentValueBinding   = new Binding("Value");
            punktyU = new List <KeyValuePair <double, double> >();
            for (int i = 0; i < A.x.Count; i++)
            {
                punktyU.Add(new KeyValuePair <double, double>(A.x[i].Real, A.y[i].Imaginary));
            }
            mySeries2.ItemsSource = punktyU;

            AmplitudaUrojona.Series.Add(mySeries2);
        }
예제 #2
0
 private void policzHistogramA(SygnalCiagly A)
 {
     policzHistogram(A);
     SredniaSygnal1.Text     = A.PoliczSrednia().ToString();
     SredniaBezwSygnal1.Text = A.PoliczSredniaBezwzgledna().ToString();
     SkutecznaSygnal1.Text   = A.PoliczWartoscSkuteczna().ToString();
     WariancjaSygnal1.Text   = A.PoliczWariancje().ToString();
     MocSredniaSygnal1.Text  = A.PoliczSredniaMoc().ToString();
 }