Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/05/19 10:12:59 (5 years ago)
Author:
chaider
Message:

#2971
Added IntervalConstraint Parameter and some fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs

    r16549 r16586  
    2323using System.Collections.Generic;
    2424using System.Linq;
     25using System.Net.Mime;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
     
    3637    protected const string TargetVariableParameterName = "TargetVariable";
    3738    protected const string VariableRangesParameterName = "VariableRanges";
     39    protected const string IntervalConstraintsParameterName = "IntervalConstraints";
    3840    public string Filename { get; set; }
    3941
     
    9496      problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>()));
    9597      problemData.Parameters.Add(new FixedValueParameter<NamedIntervals>(VariableRangesParameterName,"", new NamedIntervals()));
     98      problemData.Parameters.Add(new FixedValueParameter<TextValue>(IntervalConstraintsParameterName, "", new TextValue()));
    9699      emptyProblemData = problemData;
    97100    }
     
    105108      get { return (IFixedValueParameter<NamedIntervals>)Parameters[VariableRangesParameterName]; }
    106109    }
     110
     111    public IFixedValueParameter<TextValue> IntervalConstraintsParameter => (IFixedValueParameter<TextValue>) Parameters[IntervalConstraintsParameterName];
    107112
    108113    public string TargetVariable {
     
    168173
    169174      Parameters.Add(new FixedValueParameter<NamedIntervals>(VariableRangesParameterName, namedIntervals));
     175      Parameters.Add(new FixedValueParameter<TextValue>(IntervalConstraintsParameterName, new TextValue()));
    170176      RegisterParameterEvents();
    171177    }
Note: See TracChangeset for help on using the changeset viewer.