Changeset 12199
- Timestamp:
- 03/13/15 19:51:32 (10 years ago)
- Location:
- stable
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 12137,12151-12152
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Analysis.Statistics.Views/3.3/CorrelationView.cs
r12009 r12199 56 56 stringConvertibleMatrixView.Minimum = -1.0; 57 57 stringConvertibleMatrixView.Maximum = 1.0; 58 stringConvertibleMatrixView.FormatPattern = "0.000"; 58 59 59 60 methodComboBox.Items.Add(PearsonName); … … 212 213 .Where(x => !double.IsNaN(x) && !double.IsNegativeInfinity(x) && !double.IsPositiveInfinity(x)); 213 214 214 if (!rowValues.Any() || !columnValues.Any() || i == j ||rowValues.Count() != columnValues.Count()) {215 if (!rowValues.Any() || !columnValues.Any() || rowValues.Count() != columnValues.Count()) { 215 216 dt[i, j] = double.NaN; 217 } else if (i == j) { 218 dt[i, j] = 1.0; 216 219 } else { 217 220 if (methodName == PearsonName) { -
stable/HeuristicLab.Data.Views/3.3
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Data.Views/3.3 merged: 12151
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Data.Views/3.3/EnhancedStringConvertibleMatrixView.cs
r12009 r12199 45 45 public double Minimum { get; set; } 46 46 47 public string FormatPattern { get; set; } 48 47 49 public new DoubleMatrix Content { 48 50 get { return (DoubleMatrix)base.Content; } … … 52 54 public EnhancedStringConvertibleMatrixView() { 53 55 InitializeComponent(); 56 FormatPattern = string.Empty; 54 57 } 55 58 … … 57 60 columnVisibility = null; 58 61 rowVisibility = null; 62 } 63 64 protected override void dataGridView_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e) { 65 if (Content != null && e.RowIndex < Content.Rows && e.ColumnIndex < Content.Columns) { 66 int rowIndex = virtualRowIndices[e.RowIndex]; 67 e.Value = Content[rowIndex, e.ColumnIndex].ToString(FormatPattern); 68 } 59 69 } 60 70 -
stable/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r12009 r12199 281 281 dataGridView.Rows[e.RowIndex].ErrorText = string.Empty; 282 282 } 283 pr ivatevoid dataGridView_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e) {283 protected virtual void dataGridView_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e) { 284 284 if (Content != null && e.RowIndex < Content.Rows && e.ColumnIndex < Content.Columns) { 285 285 int rowIndex = virtualRowIndices[e.RowIndex]; -
stable/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Views merged: 12137,12151
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/FeatureCorrelation/AbstractFeatureCorrelationView.cs
r12009 r12199 48 48 protected AbstractFeatureCorrelationView() { 49 49 InitializeComponent(); 50 dataView.FormatPattern = "0.000"; 50 51 fcc = new FeatureCorrelationCalculator(); 51 52 var calculators = ApplicationManager.Manager.GetInstances<IDependencyCalculator>(); … … 115 116 dataView.Maximum = calc.Maximum; 116 117 dataView.Minimum = calc.Minimum; 118 117 119 dataView.Content = correlation; 118 120 dataView.Enabled = true;
Note: See TracChangeset
for help on using the changeset viewer.