Changeset 14571 for stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs
- Timestamp:
- 01/14/17 19:21:44 (8 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14289-14290
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression merged: 14289-14290
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4 merged: 14289-14290
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs
r14186 r14571 35 35 public class SymbolicRegressionModel : SymbolicDataAnalysisModel, ISymbolicRegressionModel { 36 36 [Storable] 37 private readonlystring targetVariable;37 private string targetVariable; 38 38 public string TargetVariable { 39 39 get { return targetVariable; } 40 set { 41 if (string.IsNullOrEmpty(value) || targetVariable == value) return; 42 targetVariable = value; 43 OnTargetVariableChanged(this, EventArgs.Empty); 44 } 40 45 } 41 46 42 47 [StorableConstructor] 43 protected SymbolicRegressionModel(bool deserializing) : base(deserializing) { } 48 protected SymbolicRegressionModel(bool deserializing) 49 : base(deserializing) { 50 targetVariable = string.Empty; 51 } 44 52 45 53 protected SymbolicRegressionModel(SymbolicRegressionModel original, Cloner cloner) … … 74 82 Scale(problemData, problemData.TargetVariable); 75 83 } 84 85 #region events 86 public event EventHandler TargetVariableChanged; 87 private void OnTargetVariableChanged(object sender, EventArgs args) { 88 var changed = TargetVariableChanged; 89 if (changed != null) 90 changed(sender, args); 91 } 92 #endregion 76 93 } 77 94 }
Note: See TracChangeset
for help on using the changeset viewer.