public static Chart WpfConstruct(SignalData data, string name)
        {
            Chart chart = new Chart();
            LineSeries series = new LineSeries();
            KeyValuePair<double, double>[] points = new KeyValuePair<double, double>[data.T.Length];

            for (int i = 0; i < data.T.Length; ++i)
                points[i] = new KeyValuePair<double, double>(data.T[i], data.X[i]);
            series.ItemsSource = points;
            chart.Height = 300;
            chart.Series.Add(series);
            return chart;
        }
Exemplo n.º 2
0
        public static Chart Construct(SignalData data)
        {
            Chart chart = new Chart();
            ChartArea area = new ChartArea();
            Series series = new Series();
            series.Points.DataBindXY(data.T, data.X);
            series.ChartType = SeriesChartType.Line;

            chart.ChartAreas.Add(area);
            chart.Series.Add(series);
            chart.ChartAreas[0].AxisX.Title = "Time";
            chart.ChartAreas[0].AxisY.Title = "Value";
            return chart;
        }
Exemplo n.º 3
0
 public Signal(SignalData data, string name)
 {
     this.t = data.T;
     this.x = data.X;
     this.Name = name;
     this.waveletLevelsAvailable = GetWaveletLevelsAvailable();
     this.wavelets = new List<SignalData>();
     this.waveletCalculated = new List<bool>(this.waveletLevelsAvailable);
     fillWaveletList();
 }