Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/20/18 10:22:45 (6 years ago)
Author:
chaider
Message:

#2971

  • Added parameter VariableRanges to RegressionProblemData
  • Added VariableRanges class
  • Added View class for VariableRanges
File:
1 edited

Legend:

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

    r16244 r16413  
    3434  public class RegressionProblemData : DataAnalysisProblemData, IRegressionProblemData, IStorableContent {
    3535    protected const string TargetVariableParameterName = "TargetVariable";
     36    protected const string VariableRangesParameterName = "VariableRanges";
    3637    public string Filename { get; set; }
    3738
     
    9192      problemData.Parameters.Add(new FixedValueParameter<IntRange>(TestPartitionParameterName, "", (IntRange)new IntRange(0, 0).AsReadOnly()));
    9293      problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>()));
     94      problemData.Parameters.Add(new FixedValueParameter<VariableRanges>(VariableRangesParameterName, new VariableRanges()));
    9395      emptyProblemData = problemData;
    9496    }
     
    98100      get { return (IConstrainedValueParameter<StringValue>)Parameters[TargetVariableParameterName]; }
    99101    }
     102
     103    public IFixedValueParameter<VariableRanges> VariableRangesParameter {
     104      get { return (IFixedValueParameter<VariableRanges>)Parameters[VariableRangesParameterName]; }
     105    }
     106
    100107    public string TargetVariable {
    101108      get { return TargetVariableParameter.Value.Value; }
     
    152159      var variables = InputVariables.Select(x => x.AsReadOnly()).ToList();
    153160      Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>(variables), variables.Where(x => x.Value == targetVariable).First()));
     161      Parameters.Add(new FixedValueParameter<VariableRanges>(VariableRangesParameterName, new VariableRanges()));
    154162      RegisterParameterEvents();
    155163    }
Note: See TracChangeset for help on using the changeset viewer.