Changeset 14290 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionModel.cs
- Timestamp:
- 09/19/16 15:27:34 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionModel.cs
r14289 r14290 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 24 using HeuristicLab.Common; … … 33 34 public string TargetVariable { 34 35 get { return targetVariable; } 35 protected set { targetVariable = value; } 36 set { 37 if (string.IsNullOrEmpty(value) || targetVariable == value) return; 38 targetVariable = value; 39 OnTargetVariableChanged(this, EventArgs.Empty); 40 } 36 41 } 37 42 … … 61 66 public abstract IEnumerable<double> GetEstimatedValues(IDataset dataset, IEnumerable<int> rows); 62 67 public abstract IRegressionSolution CreateRegressionSolution(IRegressionProblemData problemData); 68 69 #region events 70 public event EventHandler TargetVariableChanged; 71 private void OnTargetVariableChanged(object sender, EventArgs args) { 72 var changed = TargetVariableChanged; 73 if (changed != null) 74 changed(sender, args); 75 } 76 #endregion 63 77 } 64 78 }
Note: See TracChangeset
for help on using the changeset viewer.