Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/13 10:45:46 (11 years ago)
Author:
mkommend
Message:

#1997: Branched Problems.DataAnalysis.Symbolic for island data analysis algorithms.

Location:
branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Problems.DataAnalysis.Symbolic
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Evaluators/SymbolicDataAnalysisEvaluator.cs

    r9456 r10110  
    4747    private const string ApplyLinearScalingParameterName = "ApplyLinearScaling";
    4848    private const string ValidRowIndicatorParameterName = "ValidRowIndicator";
     49    private const string RowsParameterName = "Rows";
    4950
    5051    public override bool CanChangeName { get { return false; } }
     
    8283    public IValueLookupParameter<StringValue> ValidRowIndicatorParameter {
    8384      get { return (IValueLookupParameter<StringValue>)Parameters[ValidRowIndicatorParameterName]; }
     85    }
     86    public ILookupParameter<EnumerableItem<int>> RowsParameter {
     87      get { return (ILookupParameter<EnumerableItem<int>>)Parameters[RowsParameterName]; }
    8488    }
    8589    #endregion
     
    102106      Parameters.Add(new LookupParameter<BoolValue>(ApplyLinearScalingParameterName, "Flag that indicates if the individual should be linearly scaled before evaluating."));
    103107      Parameters.Add(new ValueLookupParameter<StringValue>(ValidRowIndicatorParameterName, "An indicator variable in the data set that specifies which rows should be evaluated (those for which the indicator <> 0) (optional)."));
     108      Parameters.Add(new LookupParameter<EnumerableItem<int>>(RowsParameterName, "TODO"));
    104109    }
    105110
     
    112117      if (!Parameters.ContainsKey(ValidRowIndicatorParameterName))
    113118        Parameters.Add(new ValueLookupParameter<StringValue>(ValidRowIndicatorParameterName, "An indicator variable in the data set that specifies which rows should be evaluated (those for which the indicator <> 0) (optional)."));
     119      if (!Parameters.ContainsKey(RowsParameterName))
     120        Parameters.Add(new LookupParameter<EnumerableItem<int>>(RowsParameterName, "TODO"));
    114121    }
    115122
    116123    protected IEnumerable<int> GenerateRowsToEvaluate() {
    117       return GenerateRowsToEvaluate(RelativeNumberOfEvaluatedSamplesParameter.ActualValue.Value);
     124      IEnumerable<int> rows = null;
     125      if (RowsParameter.ActualValue != null)
     126        rows = RowsParameter.ActualValue.Enumerable;
     127      if (rows == null) rows = GenerateRowsToEvaluate(RelativeNumberOfEvaluatedSamplesParameter.ActualValue.Value);
     128      return rows;
    118129    }
    119130
Note: See TracChangeset for help on using the changeset viewer.