- Timestamp:
- 03/05/14 14:48:35 (11 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/DataGridContent.cs
r10369 r10539 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System; 2 23 using System.Collections.Generic; 3 24 using System.Drawing; -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/DataGridLogic.cs
r10371 r10539 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System; 2 23 using System.Collections.Generic; 3 24 using System.Globalization; -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/FilterContent.cs
r10313 r10539 1 using HeuristicLab.Common; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System.Drawing; 23 using HeuristicLab.Common; 2 24 using HeuristicLab.Core; 3 using System;4 using System.Collections.Generic;5 using System.Drawing;6 using System.Linq;7 using System.Text;8 25 9 namespace HeuristicLab.DataPreprocessing 10 { 26 namespace HeuristicLab.DataPreprocessing { 11 27 [Item("Filter", "Represents the filter grid.")] 12 public class FilterContent : Item 13 { 28 public class FilterContent : Item { 14 29 15 30 public static new Image StaticItemImage { … … 18 33 19 34 private readonly IFilterLogic filterLogic; 20 public FilterContent(IFilterLogic theFilterLogic) 21 { 35 public FilterContent(IFilterLogic theFilterLogic) { 22 36 filterLogic = theFilterLogic; 23 37 } 24 38 25 public IFilterLogic FilterLogic 26 { 39 public IFilterLogic FilterLogic { 27 40 get { 28 41 return filterLogic; … … 31 44 32 45 public FilterContent(FilterContent content, Cloner cloner) 33 : base(content, cloner) 34 { 46 : base(content, cloner) { 35 47 36 48 } 37 49 38 public override IDeepCloneable Clone(Cloner cloner) 39 { 50 public override IDeepCloneable Clone(Cloner cloner) { 40 51 return new FilterContent(this, cloner); 41 52 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/FilterLogic.cs
r10303 r10539 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 5 21 6 namespace HeuristicLab.DataPreprocessing 7 { 8 public class FilterLogic : IFilterLogic 9 { 22 23 namespace HeuristicLab.DataPreprocessing { 24 public class FilterLogic : IFilterLogic { 10 25 } 11 26 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/HistogramContent.cs
r10313 r10539 1 using HeuristicLab.Common; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System.Drawing; 23 using HeuristicLab.Common; 2 24 using HeuristicLab.Core; 3 using System.Drawing;4 using System;5 using System.Collections.Generic;6 25 7 using System.Linq;8 using System.Text;9 26 10 namespace HeuristicLab.DataPreprocessing 11 { 27 namespace HeuristicLab.DataPreprocessing { 12 28 [Item("Histogram", "Represents the histogram grid.")] 13 public class HistogramContent : Item 14 { 29 public class HistogramContent : Item { 15 30 16 31 private readonly IHistogramLogic histogramLogic; 17 public HistogramContent(IHistogramLogic theHistogramLogic) 18 { 32 public HistogramContent(IHistogramLogic theHistogramLogic) { 19 33 histogramLogic = theHistogramLogic; 20 34 } 21 35 22 36 public HistogramContent(HistogramContent content, Cloner cloner) 23 : base(content, cloner) 24 { 37 : base(content, cloner) { 25 38 26 39 } 27 40 28 public IHistogramLogic HistogramLogic 29 { 30 get 31 { 41 public IHistogramLogic HistogramLogic { 42 get { 32 43 return histogramLogic; 33 44 } 34 45 } 35 46 36 public static new Image StaticItemImage 37 { 47 public static new Image StaticItemImage { 38 48 get { return HeuristicLab.Common.Resources.VSImageLibrary.PieChart; } 39 49 } 40 50 41 public override IDeepCloneable Clone(Cloner cloner) 42 { 51 public override IDeepCloneable Clone(Cloner cloner) { 43 52 return new HistogramContent(this, cloner); 44 53 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/HistogramLogic.cs
r10303 r10539 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 5 21 6 namespace HeuristicLab.DataPreprocessing 7 { 8 public class HistogramLogic : IHistogramLogic 9 { 22 23 namespace HeuristicLab.DataPreprocessing { 24 public class HistogramLogic : IHistogramLogic { 10 25 } 11 26 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/LineChartContent.cs
r10313 r10539 1 using HeuristicLab.Common; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System.Drawing; 23 using HeuristicLab.Common; 2 24 using HeuristicLab.Core; 3 using System.Drawing;4 using System;5 using System.Collections.Generic;6 using System.Linq;7 using System.Text;8 25 9 namespace HeuristicLab.DataPreprocessing 10 { 26 namespace HeuristicLab.DataPreprocessing { 11 27 [Item("LineChart", "Represents the line chart grid.")] 12 public class LineChartContent : Item 13 { 28 public class LineChartContent : Item { 14 29 15 30 private readonly ILineChartLogic lineChartLogic; 16 public LineChartContent(ILineChartLogic theLineChartLogic) 17 { 31 public LineChartContent(ILineChartLogic theLineChartLogic) { 18 32 lineChartLogic = theLineChartLogic; 19 33 } 20 34 21 35 public LineChartContent(LineChartContent content, Cloner cloner) 22 : base(content, cloner) 23 { 36 : base(content, cloner) { 24 37 25 38 } 26 39 27 public ILineChartLogic LineChartLogic 28 { 29 get 30 { 40 public ILineChartLogic LineChartLogic { 41 get { 31 42 return lineChartLogic; 32 43 } 33 44 } 34 45 35 public static new Image StaticItemImage 36 { 46 public static new Image StaticItemImage { 37 47 get { return HeuristicLab.Common.Resources.VSImageLibrary.PieChart; } 38 48 } 39 49 40 public override IDeepCloneable Clone(Cloner cloner) 41 { 50 public override IDeepCloneable Clone(Cloner cloner) { 42 51 return new LineChartContent(this, cloner); 43 52 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/LineChartLogic.cs
r10382 r10539 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 2 22 using System.Collections.Generic; 3 using System.Linq;4 using System.Text;5 23 using HeuristicLab.Analysis; 6 24 7 namespace HeuristicLab.DataPreprocessing 8 { 9 public class LineChartLogic : ILineChartLogic 10 { 25 namespace HeuristicLab.DataPreprocessing { 26 public class LineChartLogic : ILineChartLogic { 11 27 private IPreprocessingData preprocessingData; 12 28 private DataTable dataTable; … … 21 37 IEnumerable<string> variableNames = preprocessingData.VariableNames; 22 38 23 foreach(string variableName in variableNames) 24 { 39 foreach (string variableName in variableNames) { 25 40 IList<double> values = preprocessingData.GetValues<double>(variableName); 26 41 DataRow row = new DataRow(variableName, "", values); 27 42 dataTable.Rows.Add(row); 28 43 } 29 44 30 45 } 31 46 32 public IEnumerable<object> GetVariableNames() 33 { 47 public IEnumerable<object> GetVariableNames() { 34 48 return preprocessingData.VariableNames; 35 49 } 36 50 37 public DataTable GetDataTable() 38 { 51 public DataTable GetDataTable() { 39 52 return dataTable; 40 53 } … … 58 71 59 72 foreach (var item in dataTable.Rows) { 60 if(item.Name == name)61 73 if (item.Name == name) 74 return true; 62 75 } 63 76 return false; -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/ManipulationLogic.cs
r10535 r10539 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System; 2 23 using System.Collections.Generic; 3 24 using System.Linq; -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/SearchLogic.cs
r10367 r10539 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System; 2 23 using System.Collections.Generic; 3 24 using System.Linq; 4 using System.Text;5 25 6 26 namespace HeuristicLab.DataPreprocessing { -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/StatisticsContent.cs
r10370 r10539 1 using System.Drawing; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 using System.Drawing; 2 22 using HeuristicLab.Common; 3 23 using HeuristicLab.Core; -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/StatisticsLogic.cs
r10537 r10539 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System; 2 23 using System.Collections.Generic; 3 24 using System.Linq; -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/TransformationContent.cs
r10313 r10539 1 using HeuristicLab.Common; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System.Drawing; 23 using HeuristicLab.Common; 2 24 using HeuristicLab.Core; 3 using System.Drawing;4 using System;5 using System.Collections.Generic;6 using System.Linq;7 using System.Text;8 25 9 namespace HeuristicLab.DataPreprocessing 10 { 26 namespace HeuristicLab.DataPreprocessing { 11 27 [Item("Transformation", "Represents the transformation grid.")] 12 public class TransformationContent : Item 13 { 28 public class TransformationContent : Item { 14 29 15 30 private readonly ITransformationLogic transformationLogic; 16 public TransformationContent(ITransformationLogic theTransformationLogic) 17 { 31 public TransformationContent(ITransformationLogic theTransformationLogic) { 18 32 transformationLogic = theTransformationLogic; 19 33 } 20 34 21 public ITransformationLogic TransformationLogic 22 { 23 get 24 { 35 public ITransformationLogic TransformationLogic { 36 get { 25 37 return transformationLogic; 26 38 } … … 28 40 29 41 public TransformationContent(TransformationContent content, Cloner cloner) 30 : base(content, cloner) 31 { 42 : base(content, cloner) { 32 43 33 44 } 34 45 35 public static new Image StaticItemImage 36 { 46 public static new Image StaticItemImage { 37 47 get { return HeuristicLab.Common.Resources.VSImageLibrary.Method; } 38 48 } 39 49 40 public override IDeepCloneable Clone(Cloner cloner) 41 { 50 public override IDeepCloneable Clone(Cloner cloner) { 42 51 return new TransformationContent(this, cloner); 43 52 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/TransformationLogic.cs
r10537 r10539 1 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 2 22 using System; 3 23 namespace HeuristicLab.DataPreprocessing { … … 15 35 } 16 36 17 public void deleteRowsWithMissingValuesGreater(double percent) {37 public void DeleteRowsWithMissingValuesGreater(double percent) { 18 38 for (int i = 0; i < preprocessingData.Rows; ++i) { 19 39 int missingCount = statisticsLogic.GetRowMissingValueCount(i); … … 25 45 } 26 46 27 public void deleteColumnsWithMissingValuesGreater(float percent) {47 public void DeleteColumnsWithMissingValuesGreater(float percent) { 28 48 for (int i = 0; i < preprocessingData.Columns; ++i) { 29 49 int missingCount = statisticsLogic.GetMissingValueCount(i); … … 35 55 } 36 56 37 public void deleteColumnsWithVarianceSmaller(double variance) {57 public void DeleteColumnsWithVarianceSmaller(double variance) { 38 58 for (int i = 0; i < preprocessingData.Columns; ++i) { 39 59 if (preprocessingData.IsType<double>(i) || preprocessingData.IsType<DateTime>(i)) {
Note: See TracChangeset
for help on using the changeset viewer.