- Timestamp:
- 06/05/12 16:39:54 (12 years ago)
- Location:
- branches/HeuristicLab.DataImporter
- Files:
-
- 5 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command
- Property svn:ignore
-
old new 1 1 bin 2 2 obj 3 *.user
-
- Property svn:ignore
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/HeuristicLab.DataImporter.Command.csproj
r7632 r7968 151 151 <Compile Include="ChangeDataset\MoveColumnGroupRightCommand.cs" /> 152 152 <Compile Include="ChangeDataset\MoveColumnGroupLeftCommand.cs" /> 153 <Compile Include="MissingValues\DeleteColumnsWithMissingValuesThresholdCommand.cs" /> 154 <Compile Include="MissingValues\DeleteRowsWithMissingValuesThresholdCommand.cs" /> 155 <Compile Include="MissingValues\IThresholdCommand.cs" /> 153 156 <Compile Include="TimeSeries\ChangeDateTimeColumnToDoubleColumn.cs" /> 154 157 <Compile Include="TimeSeries\EquidistantTimeSeriesCommandBase.cs" /> … … 190 193 <DependentUpon>BoxCoxTransformationCommandView.cs</DependentUpon> 191 194 </Compile> 195 <Compile Include="View\DeleteWithThreshold.cs"> 196 <SubType>UserControl</SubType> 197 </Compile> 198 <Compile Include="View\DeleteWithThreshold.Designer.cs"> 199 <DependentUpon>DeleteWithThreshold.cs</DependentUpon> 200 </Compile> 192 201 <Compile Include="View\FilterSavitzkyGolayCommandView.cs"> 193 202 <SubType>UserControl</SubType> -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/DeleteRowsWithMissingValuesCommand.cs
r7267 r7968 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 23 using System.Linq; 25 using System.Text;26 24 using HeuristicLab.DataImporter.Data; 27 25 using HeuristicLab.DataImporter.Data.CommandBase; … … 50 48 base.Execute(); 51 49 ColumnGroup tempColumnGroup = new ColumnGroup(); 52 Dictionary<int, object> positions = new Dictionary<int, object>();50 HashSet<int> positions = new HashSet<int>(); 53 51 ColumnBase column; 54 52 … … 56 54 column = ColumnGroup.GetColumn(AffectedColumns[col]); 57 55 for (int row = 0; row < ColumnGroup.RowCount; row++) { 58 if (column.GetValue(row) == null && !positions.Contains Key(row))59 positions [row] = null;56 if (column.GetValue(row) == null && !positions.Contains(row)) 57 positions.Add(row); 60 58 } 61 59 } … … 67 65 68 66 for (int i = 0; i < ColumnGroup.RowCount; i++) 69 if (!positions.Contains Key(i))67 if (!positions.Contains(i)) 70 68 tempColumnGroup.AddRow(ColumnGroup.GetRow(i)); 71 69 -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Model/ColumnGroup.cs
r7267 r7968 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Collections;25 24 using System.Linq; 26 using System.Text;27 25 using System.Windows.Forms; 28 using System.Xml;29 using HeuristicLab.DataImporter.Data.View;30 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 27 … … 59 55 i++; 60 56 } 61 } 57 } 62 58 } 63 59 … … 125 121 selectedIndexes.Add(i); 126 122 return selectedIndexes.ToArray(); 127 } 123 } 128 124 } 129 125 -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/View/ColumnGroupView.Designer.cs
r7747 r7968 74 74 this.lblMean = new System.Windows.Forms.Label(); 75 75 this.label5 = new System.Windows.Forms.Label(); 76 this.lblMaximum = new System.Windows.Forms.Label();77 this.label4 = new System.Windows.Forms.Label();78 76 this.lblMinimum = new System.Windows.Forms.Label(); 79 77 this.label3 = new System.Windows.Forms.Label(); … … 81 79 this.label2 = new System.Windows.Forms.Label(); 82 80 this.lblValues = new System.Windows.Forms.Label(); 81 this.lblMedian = new System.Windows.Forms.Label(); 82 this.label8 = new System.Windows.Forms.Label(); 83 this.label4 = new System.Windows.Forms.Label(); 84 this.lblNullPercentage = new System.Windows.Forms.Label(); 83 85 this.label6 = new System.Windows.Forms.Label(); 84 86 this.label7 = new System.Windows.Forms.Label(); 85 87 this.lblStdDev = new System.Windows.Forms.Label(); 86 this.lblM edian= new System.Windows.Forms.Label();88 this.lblMaximum = new System.Windows.Forms.Label(); 87 89 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 88 90 ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); … … 165 167 this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 59F)); 166 168 this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 51.00671F)); 167 this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 68F));169 this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 95F)); 168 170 this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 48.99329F)); 169 171 this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); 170 172 this.tableLayoutPanel1.Controls.Add(this.lblMean, 1, 2); 171 173 this.tableLayoutPanel1.Controls.Add(this.label5, 0, 2); 172 this.tableLayoutPanel1.Controls.Add(this.lblMaximum, 3, 1);173 this.tableLayoutPanel1.Controls.Add(this.label4, 2, 1);174 174 this.tableLayoutPanel1.Controls.Add(this.lblMinimum, 1, 1); 175 175 this.tableLayoutPanel1.Controls.Add(this.label3, 0, 1); … … 177 177 this.tableLayoutPanel1.Controls.Add(this.label2, 2, 0); 178 178 this.tableLayoutPanel1.Controls.Add(this.lblValues, 1, 0); 179 this.tableLayoutPanel1.Controls.Add(this.lblMedian, 1, 3); 180 this.tableLayoutPanel1.Controls.Add(this.label8, 2, 1); 181 this.tableLayoutPanel1.Controls.Add(this.label4, 2, 2); 182 this.tableLayoutPanel1.Controls.Add(this.lblNullPercentage, 3, 1); 179 183 this.tableLayoutPanel1.Controls.Add(this.label6, 0, 3); 180 this.tableLayoutPanel1.Controls.Add(this.label7, 2, 2);181 this.tableLayoutPanel1.Controls.Add(this.lblStdDev, 3, 2);182 this.tableLayoutPanel1.Controls.Add(this.lblM edian, 1, 3);184 this.tableLayoutPanel1.Controls.Add(this.label7, 2, 3); 185 this.tableLayoutPanel1.Controls.Add(this.lblStdDev, 3, 3); 186 this.tableLayoutPanel1.Controls.Add(this.lblMaximum, 3, 2); 183 187 this.tableLayoutPanel1.Location = new System.Drawing.Point(-1, 20); 184 188 this.tableLayoutPanel1.Name = "tableLayoutPanel1"; … … 217 221 this.label5.Text = "Mean:"; 218 222 // 219 // lblMaximum220 //221 this.lblMaximum.AutoSize = true;222 this.lblMaximum.Location = new System.Drawing.Point(269, 20);223 this.lblMaximum.Name = "lblMaximum";224 this.lblMaximum.Size = new System.Drawing.Size(0, 13);225 this.lblMaximum.TabIndex = 21;226 //227 // label4228 //229 this.label4.AutoSize = true;230 this.label4.Location = new System.Drawing.Point(201, 20);231 this.label4.Name = "label4";232 this.label4.Size = new System.Drawing.Size(54, 13);233 this.label4.TabIndex = 20;234 this.label4.Text = "Maximum:";235 //236 223 // lblMinimum 237 224 // … … 254 241 // 255 242 this.lblNullValues.AutoSize = true; 256 this.lblNullValues.Location = new System.Drawing.Point(2 69, 0);243 this.lblNullValues.Location = new System.Drawing.Point(282, 0); 257 244 this.lblNullValues.Name = "lblNullValues"; 258 245 this.lblNullValues.Size = new System.Drawing.Size(0, 13); … … 262 249 // 263 250 this.label2.AutoSize = true; 264 this.label2.Location = new System.Drawing.Point( 201, 0);251 this.label2.Location = new System.Drawing.Point(187, 0); 265 252 this.label2.Name = "label2"; 266 253 this.label2.Size = new System.Drawing.Size(60, 13); … … 275 262 this.lblValues.Size = new System.Drawing.Size(0, 13); 276 263 this.lblValues.TabIndex = 15; 264 // 265 // lblMedian 266 // 267 this.lblMedian.AutoSize = true; 268 this.lblMedian.Location = new System.Drawing.Point(62, 60); 269 this.lblMedian.Name = "lblMedian"; 270 this.lblMedian.Size = new System.Drawing.Size(0, 13); 271 this.lblMedian.TabIndex = 25; 272 // 273 // label8 274 // 275 this.label8.AutoSize = true; 276 this.label8.Location = new System.Drawing.Point(187, 20); 277 this.label8.Name = "label8"; 278 this.label8.Size = new System.Drawing.Size(83, 13); 279 this.label8.TabIndex = 28; 280 this.label8.Text = "NullPercentage:"; 281 // 282 // label4 283 // 284 this.label4.AutoSize = true; 285 this.label4.Location = new System.Drawing.Point(187, 40); 286 this.label4.Name = "label4"; 287 this.label4.Size = new System.Drawing.Size(54, 13); 288 this.label4.TabIndex = 20; 289 this.label4.Text = "Maximum:"; 290 // 291 // lblNullPercentage 292 // 293 this.lblNullPercentage.AutoSize = true; 294 this.lblNullPercentage.Location = new System.Drawing.Point(282, 20); 295 this.lblNullPercentage.Name = "lblNullPercentage"; 296 this.lblNullPercentage.Size = new System.Drawing.Size(0, 13); 297 this.lblNullPercentage.TabIndex = 29; 277 298 // 278 299 // label6 … … 288 309 // 289 310 this.label7.AutoSize = true; 290 this.label7.Location = new System.Drawing.Point( 201, 40);311 this.label7.Location = new System.Drawing.Point(187, 60); 291 312 this.label7.Name = "label7"; 292 313 this.label7.Size = new System.Drawing.Size(43, 13); … … 297 318 // 298 319 this.lblStdDev.AutoSize = true; 299 this.lblStdDev.Location = new System.Drawing.Point(2 69, 40);320 this.lblStdDev.Location = new System.Drawing.Point(282, 60); 300 321 this.lblStdDev.Name = "lblStdDev"; 301 322 this.lblStdDev.Size = new System.Drawing.Size(0, 13); 302 323 this.lblStdDev.TabIndex = 27; 303 324 // 304 // lblM edian305 // 306 this.lblM edian.AutoSize = true;307 this.lblM edian.Location = new System.Drawing.Point(62, 60);308 this.lblM edian.Name = "lblMedian";309 this.lblM edian.Size = new System.Drawing.Size(0, 13);310 this.lblM edian.TabIndex = 25;325 // lblMaximum 326 // 327 this.lblMaximum.AutoSize = true; 328 this.lblMaximum.Location = new System.Drawing.Point(282, 40); 329 this.lblMaximum.Name = "lblMaximum"; 330 this.lblMaximum.Size = new System.Drawing.Size(0, 13); 331 this.lblMaximum.TabIndex = 21; 311 332 // 312 333 // ColumnGroupView … … 352 373 private System.Windows.Forms.Label lblStdDev; 353 374 private System.Windows.Forms.ToolTip toolTip; 375 private System.Windows.Forms.Label label8; 376 private System.Windows.Forms.Label lblNullPercentage; 354 377 } 355 378 } -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/View/ColumnGroupView.cs
r7731 r7968 392 392 } 393 393 lblNullValues.Text = nullValuesCount.ToString(); 394 double nullPercentage = (double)nullValuesCount / (double)totalValuesCount; 395 lblNullPercentage.Text = Double.IsNaN(nullPercentage) ? "" : nullPercentage.ToString(); 394 396 lblValues.Text = totalValuesCount.ToString(); 395 397 lblMinimum.Text = minimum == null ? "" : minimum.ToString();
Note: See TracChangeset
for help on using the changeset viewer.