Ejemplo n.º 1
0
        private void Button_Click_5(object sender, RoutedEventArgs e)
        {
            PointsBuilder   builder         = new PointsBuilder();
            var             points          = builder.GetPHPhaseSpectre(256, 1);
            PlotReadyValues plotReadyValues = new PlotReadyValues();

            plotReadyValues.AxisToDraw = new List <List <Point> >();
            _mainViewModel.UpdateModel(PlotModelGenerator.GenerateBarPlotModel(points));
        }
Ejemplo n.º 2
0
        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            PointsBuilder builder = new PointsBuilder();
            var           points  = builder.GetNoise(PointsBuilder.TFilterType.SlidingAverage, 256, 1);

            _mainViewModel.UpdateModel(PlotModelGenerator.GeneratePlotModel(points));
            points = builder.GetAmplSpectre(PointsBuilder.TFilterType.SlidingAverage, 256, 1);
            _mainViewModel.UpdateAmplModel(PlotModelGenerator.GenerateBarPlotModel(points));
            points = builder.GetPhaseSpectre(PointsBuilder.TFilterType.SlidingAverage, 256, 1);
            _mainViewModel.UpdatePhaseModel(PlotModelGenerator.GenerateBarPlotModel(points));
        }