Changeset 16774 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Timestamp:
- 04/10/19 16:46:46 (6 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraint.cs
r16773 r16774 18 18 public bool InclusiveUpperBound { get; set; } 19 19 public bool IsDerivation { get; set; } 20 public string Variable { get; set; } 20 21 private string variable; 22 public string Variable { 23 get => variable; 24 set { 25 if (value != variable) { 26 variable = value; 27 OnChanged(EventArgs.Empty); 28 } 29 } 30 } 21 31 public int NumberOfDerivation { get; set; } 22 32 … … 53 63 this.IsDerivation = original.IsDerivation; 54 64 this.Variable = original.Variable; 55 this.NumberOfDerivation = NumberOfDerivation;65 this.NumberOfDerivation = original.NumberOfDerivation; 56 66 } 57 67 -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraintsParser.cs
r16773 r16774 47 47 } 48 48 49 49 50 public static IEnumerable<IntervalConstraint> ParseInput(string input, string target = "", IEnumerable<string> variables = null) { 50 51 var lines = input.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None); … … 132 133 } else if (trimmedLine.StartsWith("#") || trimmedLine == "") { 133 134 //If it is a comment just continue without saving anything 134 //TODO maybe save comment too.135 135 continue; 136 136 } else { -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r16773 r16774 192 192 193 193 Parameters.Add(new FixedValueParameter<NamedIntervals>(VariableRangesParameterName, namedIntervals)); 194 Parameters.Add(new FixedValueParameter<ParsedConstraint>(IntervalConstraintsParameterName, new ParsedConstraint(commentMessage, t argetVariable, allowedInputVariables)));194 Parameters.Add(new FixedValueParameter<ParsedConstraint>(IntervalConstraintsParameterName, new ParsedConstraint(commentMessage, this))); 195 195 RegisterParameterEvents(); 196 196 }
Note: See TracChangeset
for help on using the changeset viewer.