Example #1
0
        private void FillDftChart(double[] firstOtv, double[] secondOtv, Chart[] charts, double firstMultiplier, double secondMultiplier)
        {
            foreach (Chart chart in charts.Skip(3))
              {
            chart.Series[0].Points.Clear();
              }

              foreach (int i in firstOtv)
              {
            charts[3].Series[0].Points.AddY(i);
              }

              foreach (int i in secondOtv)
              {
            charts[4].Series[0].Points.AddY(i);
              }

              double[] result = new double[firstOtv.Length];
              for (int i = 0; i < result.Length; i++)
              {
            result[i] = firstOtv[i] * firstMultiplier - secondOtv[i] * secondMultiplier;
            charts[5].Series[0].Points.AddY(result[i]);
              }
              RecalculateAxesScale(charts[5], result);
        }