コード例 #1
0
 public void SetData(SeriesData data, SeriesVariable variable, NeuralNetworkAnalysisForm.NetworkSpecification networkProperties)
 {
     this.data = data;
     this.variable = variable;
     this.networkProperties = networkProperties;
     this.lblVariable.Text = variable.VariableName;
     this.update();
 }
コード例 #2
0
        public void NeuralNetworkAnalysis()
        {
            SelectAnalyzedVariable dlg = new SelectAnalyzedVariable(this.data.SeriesVariables);
            dlg.ShowDialog();

            if (dlg.DialogResult == DialogResult.OK)
            {
                NeuralNetworkAnalysisForm neural = new NeuralNetworkAnalysisForm();
                neural.SetVariable(dlg.SelectedVariable);
                neural.ShowDialog();
                if (neural.DialogResult == DialogResult.Yes)
                {
                    ANNSelectResultView select = new ANNSelectResultView();
                    select.ShowDialog();
                    if (select.DialogResult == DialogResult.OK)
                    {
                        ANNResultTabPage annTabPage = new ANNResultTabPage();

                        annTabPage.Title = "Neural Network: '" + dlg.SelectedVariable.VariableName + "'";

                        if (select.IsForecastedDataGridChecked)
                        {
                            annTabPage.SetData(this.data, dlg.SelectedVariable, neural.NetworkProperties, neural.Solution, neural.Forecast(select.ForecastingStep));
                        }
                        else
                        {
                            annTabPage.SetData(this.data, dlg.SelectedVariable, neural.NetworkProperties, neural.Solution, null);
                        }

                        annTabPage.IsAnnModelSummaryVisible = select.IsAnnModelSummaryChecked;
                        annTabPage.IsActualPredictedResidualDataGridVisible = select.IsActualPredictedResidualDataGridChecked;
                        annTabPage.IsForecastedDataGridVisible = select.IsForecastedDataGridChecked;
                        annTabPage.IsActualAndPredictedGraphVisible = select.IsActualAndPredictedGraphChecked;
                        annTabPage.IsActualAndForecastedGraphVisible = select.IsActualAndForecastedGraphChecked;
                        annTabPage.IsActualVsPredictedGraphVisible = select.IsActualVsPredictedGraphChecked;
                        annTabPage.IsResidualGraphVisible = select.IsResidualGraphChecked;
                        annTabPage.IsResidualVsActualGraphVisible = select.IsResidualVsActualGraphChecked;
                        annTabPage.IsResidualVsPredictedGraphVisible = select.IsResidualVsPredictedGraphChecked;

                        annTabPage.DrawControl();

                        annTabPage.IsDrawn = true;
                        this.tabControlResult.AddTab(annTabPage);
                        this.tabControlResult.SelectedItem = annTabPage;

                        this.tabControlData.SelectedTab = this.tabPageResult;

                    }

                }
            }
        }
コード例 #3
0
 public void SetData(SeriesData data, SeriesVariable variable, NeuralNetworkAnalysisForm.NetworkSpecification networkProperties,
     double[] predicted, double[] forecasted)
 {
     this.data = data;
     this.variable = variable;
     this.predicted = predicted;
     this.forecasted = forecasted;
     this.networkProperties = networkProperties;
 }