Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/15/12 13:17:07 (12 years ago)
Author:
mkommend
Message:

#1081: Corrected time series solution results and implemented new models.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Views/3.4/TimeSeriesPrognosis/TimeSeriesPrognosisSolutionLineChartView.cs

    r7998 r8010  
    2525using System.Windows.Forms;
    2626using System.Windows.Forms.DataVisualization.Charting;
     27using HeuristicLab.Common;
    2728using HeuristicLab.MainForm;
    2829using HeuristicLab.MainForm.WindowsForms;
     
    7778          this.chart.Series[PROGNOSEDVALUES_TRAINING_SERIES_NAME].Points
    7879            .DataBindXY(Content.ProblemData.TrainingIndizes.ToArray(),
    79                         Content.GetPrognosedValues(Content.ProblemData.TrainingIndizes.Take(1), Content.ProblemData.TrainingPartition.Size).SelectMany(x => x).ToArray());
     80                        Content.GetPrognosedValues(Content.ProblemData.TrainingIndizes.Take(1), Content.ProblemData.TrainingIndizes.Count().ToEnumerable()).First().ToArray());
    8081        } else {
    8182          this.chart.Series[PROGNOSEDVALUES_TRAINING_SERIES_NAME].Points
    8283            .DataBindXY(Content.ProblemData.TrainingIndizes.ToArray(),
    83                         Content.GetPrognosedValues(Content.ProblemData.TrainingIndizes, 1).SelectMany(x => x).ToArray());
     84                        Content.GetPrognosedValues(Content.ProblemData.TrainingIndizes, Enumerable.Repeat(1, Content.ProblemData.TrainingIndizes.Count())).SelectMany(x => x).ToArray());
    8485        }
    8586        this.chart.Series[PROGNOSEDVALUES_TRAINING_SERIES_NAME].Tag = Content;
     
    9596          this.chart.Series[PROGNOSEDVALUES_TEST_SERIES_NAME].Points
    9697            .DataBindXY(Content.ProblemData.TestIndizes.ToArray(),
    97                         Content.GetPrognosedValues(Content.ProblemData.TestIndizes.Take(1), Content.ProblemData.TestPartition.Size).SelectMany(x => x).ToArray());
     98                        Content.GetPrognosedValues(Content.ProblemData.TestIndizes.Take(1), Content.ProblemData.TestIndizes.Count().ToEnumerable()).First().ToArray());
    9899        } else {
    99100          this.chart.Series[PROGNOSEDVALUES_TEST_SERIES_NAME].Points
    100101            .DataBindXY(Content.ProblemData.TestIndizes.ToArray(),
    101                         Content.GetPrognosedValues(Content.ProblemData.TestIndizes, 1).SelectMany(x => x).ToArray());
     102                       Content.GetPrognosedValues(Content.ProblemData.TestIndizes, Enumerable.Repeat(1, Content.ProblemData.TestIndizes.Count())).SelectMany(x => x).ToArray());
    102103        }
    103104        this.chart.Series[PROGNOSEDVALUES_TEST_SERIES_NAME].Tag = Content;
     
    220221          case PROGNOSEDVALUES_TRAINING_SERIES_NAME:
    221222            indizes = Content.ProblemData.TrainingIndizes.ToArray();
    222             predictedValues = Content.GetPrognosedValues(Content.ProblemData.TrainingIndizes.Take(1), Content.ProblemData.TrainingPartition.Size).First();
     223            predictedValues = Content.GetPrognosedValues(Content.ProblemData.TrainingIndizes.Take(1), Content.ProblemData.TrainingPartition.Size.ToEnumerable()).First();
    223224            break;
    224225          case PROGNOSEDVALUES_TEST_SERIES_NAME:
    225226            testPrognosisStart = Content.ProblemData.TestPartition.Start;
    226227            indizes = Content.ProblemData.TestIndizes.ToArray();
    227             predictedValues = Content.GetPrognosedValues(Content.ProblemData.TestIndizes.Take(1), Content.ProblemData.TestPartition.Size).First();
     228            predictedValues = Content.GetPrognosedValues(Content.ProblemData.TestIndizes.Take(1), Content.ProblemData.TestPartition.Size.ToEnumerable()).First();
    228229            break;
    229230        }
Note: See TracChangeset for help on using the changeset viewer.