Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/05/14 17:30:38 (11 years ago)
Author:
mkommend
Message:

#1998: Updated classification model comparision branch with trunk changes.

File:
1 edited

Legend:

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

    r8798 r10553  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    7676        var values = variableValues.ElementAt(i);
    7777        IList clonedValues = null;
    78         if (values is List<double>)
     78        if (values is IList<double>)
    7979          clonedValues = new List<double>(values.Cast<double>());
    80         else if (values is List<string>)
     80        else if (values is IList<string>)
    8181          clonedValues = new List<string>(values.Cast<string>());
    82         else if (values is List<DateTime>)
     82        else if (values is IList<DateTime>)
    8383          clonedValues = new List<DateTime>(values.Cast<DateTime>());
    8484        else {
    8585          this.variableNames = new List<string>();
    8686          this.variableValues = new Dictionary<string, IList>();
    87           throw new ArgumentException("The variable values must be of type List<double>, List<string> or List<DateTime>");
     87          throw new ArgumentException("The variable values must be of type IList<double>, IList<string> or IList<DateTime>");
    8888        }
    8989        this.variableValues.Add(this.variableNames[i], clonedValues);
     
    191191        throw new ArgumentException("The variable " + variableName + " does not exist in the dataset.");
    192192      List<double> values = list as List<double>;
    193       if (values == null) throw new ArgumentException("The varialbe " + variableName + " is not a double variable.");
     193      if (values == null) throw new ArgumentException("The variable " + variableName + " is not a double variable.");
    194194
    195195      return rows.Select(index => values[index]);
Note: See TracChangeset for help on using the changeset viewer.