Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/15/09 17:30:45 (15 years ago)
Author:
gkronber
Message:

Added code to store variable quality impacts for each model into the CEDMA result DB. #644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Modeling/3.2/Model.cs

    r2041 r2045  
    122122    public double GetVariableQualityImpact(string variableName) {
    123123      if (variableQualityImpacts.ContainsKey(variableName)) return variableQualityImpacts[variableName];
    124       else return 1.0;
     124      else throw new ArgumentException("Impact of variable "+variableName+" is not available.");
    125125    }
    126126
    127127    public double GetVariableEvaluationImpact(string variableName) {
    128128      if (variableEvaluationImpacts.ContainsKey(variableName)) return variableEvaluationImpacts[variableName];
    129       else return 0.0;
     129      else throw new ArgumentException("Impact of variable " + variableName + " is not available.");
    130130    }
    131131
Note: See TracChangeset for help on using the changeset viewer.