Changeset 17547 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Timestamp:
- 05/20/20 08:52:25 (5 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval/Interval.cs
r17542 r17547 263 263 264 264 return new Interval(Math.Pow(a.LowerBound, 1.0 / higher), Math.Pow(a.UpperBound, 1.0 / lower)); 265 265 266 } 266 267 … … 285 286 if (a.Contains(0.0)) { 286 287 min = 0.0; 287 }288 } 288 289 289 290 return new Interval(min, max); -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r17506 r17547 94 94 problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>())); 95 95 problemData.Parameters.Add(new FixedValueParameter<IntervalCollection>(VariableRangesParameterName, "", new IntervalCollection())); 96 problemData.Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, "", new ProblemDataConstraint(problemData)));97 96 emptyProblemData = problemData; 98 97 } … … 107 106 public IntervalCollection VariableRanges { 108 107 get => VariableRangesParameter.Value; 109 }110 111 112 public IFixedValueParameter<ProblemDataConstraint> IntervalConstraintsParameter => (IFixedValueParameter<ProblemDataConstraint>)Parameters[IntervalConstraintsParameterName];113 114 public ProblemDataConstraint IntervalConstraints {115 get => IntervalConstraintsParameter.Value;116 108 } 117 109 … … 148 140 Parameters.Add(new FixedValueParameter<IntervalCollection>(VariableRangesParameterName, intervalCollection)); 149 141 } 150 if (!Parameters.ContainsKey(IntervalConstraintsParameterName)) {151 Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, new ProblemDataConstraint(this)));152 }153 142 RegisterParameterEvents(); 154 143 } … … 180 169 var intervalCollection = CalculateDatasetIntervals(this.Dataset); 181 170 Parameters.Add(new FixedValueParameter<IntervalCollection>(VariableRangesParameterName, intervalCollection)); 182 Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, new ProblemDataConstraint(this)));183 171 RegisterParameterEvents(); 184 172 }
Note: See TracChangeset
for help on using the changeset viewer.