Changeset 9992 for trunk/sources
- Timestamp:
- 09/19/13 13:24:08 (11 years ago)
- Location:
- trunk/sources
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/TypeCoherentExpressionGrammar.cs
r9459 r9992 251 251 Symbols.First(s => s.Name == SpecialFunctionsName).Enabled = false; 252 252 253 253 Symbols.Single(s => s.Name == "Variable").Enabled = false; 254 254 Symbols.First(s => s.Name == TimeSeriesSymbolsName).Enabled = true; 255 255 Symbols.First(s => s is Derivative).Enabled = false; -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading.Views/3.4/SolutionLineChartView.cs
r9991 r9992 53 53 this.chart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true; 54 54 this.chart.ChartAreas[0].AxisY.ScaleView.Zoomable = true; 55 this.chart.ChartAreas[0].AxisY2.ScaleView.Zoomable = false; 55 56 this.chart.ChartAreas[0].CursorY.Interval = 0; 56 57 } … … 59 60 this.chart.Series.Clear(); 60 61 if (Content != null) { 62 var trainingRows = Content.ProblemData.TrainingIndices; 63 var testRows = Content.ProblemData.TestIndices; 61 64 this.chart.Series.Add(SIGNALS_SERIES_NAME); 62 65 this.chart.Series[SIGNALS_SERIES_NAME].LegendText = SIGNALS_SERIES_NAME; 63 66 this.chart.Series[SIGNALS_SERIES_NAME].ChartType = SeriesChartType.FastLine; 64 this.chart.Series[SIGNALS_SERIES_NAME].Points.DataBindY(Content. Signals.ToArray());67 this.chart.Series[SIGNALS_SERIES_NAME].Points.DataBindY(Content.TrainingSignals.Concat(Content.TestSignals).ToArray()); 65 68 this.chart.Series[SIGNALS_SERIES_NAME].Tag = Content; 69 this.chart.Series[SIGNALS_SERIES_NAME].YAxisType = AxisType.Secondary; 66 70 67 IEnumerable<double> accumulatedPrice = GetAccumulatedPr ices(Content.ProblemData.Dataset.GetDoubleValues(Content.ProblemData.PriceChangeVariable));71 IEnumerable<double> accumulatedPrice = GetAccumulatedProfits(Content.ProblemData.Dataset.GetDoubleValues(Content.ProblemData.PriceChangeVariable)); 68 72 this.chart.Series.Add(PRICEVARIABLE_SERIES_NAME); 69 73 this.chart.Series[PRICEVARIABLE_SERIES_NAME].LegendText = PRICEVARIABLE_SERIES_NAME; … … 71 75 this.chart.Series[PRICEVARIABLE_SERIES_NAME].Points.DataBindY(accumulatedPrice.ToArray()); 72 76 this.chart.Series[PRICEVARIABLE_SERIES_NAME].Tag = Content; 77 this.chart.Series[SIGNALS_SERIES_NAME].YAxisType = AxisType.Primary; 73 78 74 IEnumerable<double> profit = OnlineProfitCalculator.GetProfits(Content.ProblemData.Dataset.GetDoubleValues(Content.ProblemData.PriceChangeVariable), Content.Signals, Content.ProblemData.TransactionCosts); 75 IEnumerable<double> accumulatedProfits = GetAccumulatedPrices(profit); 79 80 IEnumerable<double> trainingProfit = OnlineProfitCalculator.GetProfits(Content.ProblemData.Dataset.GetDoubleValues(Content.ProblemData.PriceChangeVariable, trainingRows), Content.TrainingSignals, Content.ProblemData.TransactionCosts); 81 IEnumerable<double> testProfit = OnlineProfitCalculator.GetProfits(Content.ProblemData.Dataset.GetDoubleValues(Content.ProblemData.PriceChangeVariable, testRows), Content.TestSignals, Content.ProblemData.TransactionCosts); 82 IEnumerable<double> accTrainingProfit = GetAccumulatedProfits(trainingProfit); 83 IEnumerable<double> accTestProfit = GetAccumulatedProfits(testProfit); 76 84 this.chart.Series.Add(ASSET_SERIES_NAME); 77 85 this.chart.Series[ASSET_SERIES_NAME].LegendText = ASSET_SERIES_NAME; 78 86 this.chart.Series[ASSET_SERIES_NAME].ChartType = SeriesChartType.FastLine; 79 this.chart.Series[ASSET_SERIES_NAME].Points.DataBindY(acc umulatedProfits.ToArray());87 this.chart.Series[ASSET_SERIES_NAME].Points.DataBindY(accTrainingProfit.Concat(accTestProfit).ToArray()); 80 88 this.chart.Series[ASSET_SERIES_NAME].Tag = Content; 89 this.chart.Series[SIGNALS_SERIES_NAME].YAxisType = AxisType.Primary; 81 90 82 91 this.UpdateStripLines(); … … 84 93 } 85 94 86 private IEnumerable<double> GetAccumulatedPr ices(IEnumerable<double> xs) {95 private IEnumerable<double> GetAccumulatedProfits(IEnumerable<double> xs) { 87 96 double sum = 0; 88 97 foreach (var x in xs) { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading.Views/3.4/SolutionView.Designer.cs
r9796 r9992 58 58 // itemsGroupBox 59 59 // 60 this.itemsGroupBox.Text = " RegressionSolution";60 this.itemsGroupBox.Text = "Trading Solution"; 61 61 // 62 62 // addButton … … 72 72 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 73 73 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 74 this.Name = " RegressionSolutionView";74 this.Name = "TradingSolutionView"; 75 75 this.splitContainer.Panel1.ResumeLayout(false); 76 76 this.splitContainer.Panel2.ResumeLayout(false); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading.Views/3.4/SolutionView.cs
r9928 r9992 26 26 27 27 namespace HeuristicLab.Problems.DataAnalysis.Trading.Views { 28 [View("Trading Solution View")]28 [View("Trading Solution View")] 29 29 [Content(typeof(Solution), true)] 30 30 public partial class SolutionView : DataAnalysisSolutionView { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Trading/3.4/Plugin.cs.frame
r9965 r9992 38 38 [PluginDependency("HeuristicLab.Problems.DataAnalysis.Symbolic", "3.4")] 39 39 [PluginDependency("HeuristicLab.Problems.Instances", "3.3")] 40 [PluginDependency("HeuristicLab.Problems.Instances.DataAnalysis", "3.3")] 40 41 public class Plugin : PluginBase { 41 42 }
Note: See TracChangeset
for help on using the changeset viewer.