Last change
on this file since 10381 was
10377,
checked in by aesterer, 11 years ago
|
Added line chart and basic logic for line chart
|
File size:
805 bytes
|
Rev | Line | |
---|
[10244] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
[10377] | 5 | using HeuristicLab.Analysis;
|
---|
[10244] | 6 |
|
---|
[10303] | 7 | namespace HeuristicLab.DataPreprocessing
|
---|
[10244] | 8 | {
|
---|
[10252] | 9 | public class LineChartLogic:ILineChartLogic
|
---|
[10244] | 10 | {
|
---|
[10377] | 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 | }
|
---|
[10244] | 29 | }
|
---|
| 30 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.