Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/22/14 15:56:14 (11 years ago)
Author:
aesterer
Message:

Added line chart and basic logic for line chart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/LineChartLogic.cs

    r10303 r10377  
    33using System.Linq;
    44using System.Text;
     5using HeuristicLab.Analysis;
    56
    67namespace HeuristicLab.DataPreprocessing
     
    89  public class LineChartLogic:ILineChartLogic
    910  {
     11    private IPreprocessingData preprocessingData;
     12
     13    public LineChartLogic(IPreprocessingData preprocessingData) {
     14      this.preprocessingData = preprocessingData;
     15 
     16    }
     17
     18    public void FillDataTable(DataTable dataTable) {
     19      IEnumerable<string> variableNames = preprocessingData.VariableNames;
     20
     21      foreach(string variableName in variableNames)
     22      {
     23        IList<double> values = preprocessingData.GetValues<double>(variableName);
     24        DataRow row = new DataRow(variableName, "", values);
     25        dataTable.Rows.Add(row);
     26      }
     27 
     28    }
    1029  }
    1130}
Note: See TracChangeset for help on using the changeset viewer.