Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/19/18 12:07:26 (6 years ago)
Author:
mkommend
Message:

#2955: Added utility method that checks if a variable is present in the dataset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs

    r16084 r16241  
    167167      }
    168168    }
     169
     170    public bool ContainsVariable(string variableName) {
     171      return variableValues.ContainsKey(variableName);
     172    }
    169173    public IEnumerable<string> DoubleVariables {
    170174      get { return variableValues.Where(p => p.Value is IList<double>).Select(p => p.Key); }
Note: See TracChangeset for help on using the changeset viewer.