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
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.Analysis;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.DataPreprocessing
|
---|
8 | {
|
---|
9 | public class LineChartLogic:ILineChartLogic
|
---|
10 | {
|
---|
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 | }
|
---|
29 | }
|
---|
30 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.