Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/07/18 10:21:36 (6 years ago)
Author:
fholzing
Message:

#2904: Fixed Types (String for FactorVariables)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2904_CalculateImpacts/3.4/Implementation/Regression/RegressionSolutionVariableImpactsCalculator.cs

    r16052 r16128  
    189189      } else if (modifiableDataset.VariableHasType<string>(variableName)) {
    190190        originalValues = modifiableDataset.GetReadOnlyStringValues(variableName).ToList();
    191         replacementValues = GetReplacementValuesForString(model, modifiableDataset, variableName, rows, originalValues, targetValues, factorReplacementMethod);
     191        replacementValues = GetReplacementValuesForString(model, modifiableDataset, variableName, rows, (List<string>)originalValues, targetValues, factorReplacementMethod);
    192192      } else {
    193193        throw new NotSupportedException("Variable not supported");
     
    249249      string variableName,
    250250      IEnumerable<int> rows,
    251       IList originalValues,
     251      List<string> originalValues,
    252252      IEnumerable<double> targetValues,
    253253      FactorReplacementMethodEnum factorReplacementMethod = FactorReplacementMethodEnum.Shuffle) {
    254254
    255       IList replacementValues = null;
     255      List<string> replacementValues = null;
    256256      IRandom random = new FastRandom(31415);
    257257
Note: See TracChangeset for help on using the changeset viewer.