Changeset 340
- Timestamp:
- 06/26/08 11:59:46 (17 years ago)
- Location:
- branches/Ticket175Branch/HeuristicLab.DataAnalysis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ticket175Branch/HeuristicLab.DataAnalysis/Dataset.cs
r333 r340 201 201 for(int column = 0; column < columns; column++) { 202 202 builder.Append(";"); 203 builder.Append(samples[row * columns + column].ToString( format));203 builder.Append(samples[row * columns + column].ToString("r", format)); 204 204 } 205 205 } … … 222 222 string s = ""; 223 223 for(int i = 0; i < xs.Length; i++) { 224 s += xs[i].ToString( CultureInfo.InvariantCulture) + "; ";224 s += xs[i].ToString("r", CultureInfo.InvariantCulture) + "; "; 225 225 } 226 226 -
branches/Ticket175Branch/HeuristicLab.DataAnalysis/DatasetView.cs
r312 r340 44 44 { manipulator.Execute(Dataset); })); 45 45 } 46 47 dataGridView.DefaultCellStyle.Format = "r"; 46 48 } 47 49 -
branches/Ticket175Branch/HeuristicLab.DataAnalysis/ManualScalingControl.cs
r312 r340 18 18 cancelButton.Visible = editingAllowed; 19 19 cancelButton.Text = "Cancel"; 20 dataGridView.DefaultCellStyle.Format = "r"; 20 21 } 21 22 -
branches/Ticket175Branch/HeuristicLab.DataAnalysis/SvmExporter.cs
r234 r340 109 109 StreamWriter writer = new StreamWriter(filename); 110 110 for(int i = 0; i < dataset.Rows; i++) { 111 writer.Write(dataset.GetValue(i, targetColumn).ToString( CultureInfo.InvariantCulture) + "\t");111 writer.Write(dataset.GetValue(i, targetColumn).ToString("r", CultureInfo.InvariantCulture) + "\t"); 112 112 for(int j = 0; j < dataset.Columns; j++) { 113 113 if(j != targetColumn) { 114 114 double val = dataset.GetValue(i, j); 115 115 if(!double.IsInfinity(val) && !double.IsNaN(val)) 116 writer.Write((j + 1) + ":" + val.ToString( CultureInfo.InvariantCulture) + "\t");116 writer.Write((j + 1) + ":" + val.ToString("r", CultureInfo.InvariantCulture) + "\t"); 117 117 } 118 118 }
Note: See TracChangeset
for help on using the changeset viewer.