- Timestamp:
- 03/05/15 15:51:09 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Analysis.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/HistogramControl.Designer.cs
r12140 r12143 148 148 0, 149 149 0, 150 65536});150 851968}); 151 151 this.bandwidthNumericUpDown.Name = "bandwidthNumericUpDown"; 152 152 this.bandwidthNumericUpDown.Size = new System.Drawing.Size(61, 20); -
trunk/sources/HeuristicLab.Analysis.Views/3.3/HistogramControl.cs
r12140 r12143 31 31 public partial class HistogramControl : UserControl { 32 32 protected static readonly string SeriesName = "Histogram"; 33 33 protected static readonly decimal bandwidthMin = 0.0000000000001m; 34 34 protected Dictionary<string, List<double>> points; 35 pr ivatebool suppressUpdate;35 protected bool suppressUpdate; 36 36 37 37 public int NumberOfBins { … … 198 198 if (double.IsNaN(bandwidth)) { 199 199 bandwidth = KernelDensityEstimator.EstimateBandwidth(rowArray); 200 decimal bwDecimal = (decimal)bandwidth; 201 if (bwDecimal < bandwidthMin) { 202 bwDecimal = bandwidthMin; 203 bandwidth = decimal.ToDouble(bwDecimal); 204 } 200 205 suppressUpdate = true; 201 bandwidthNumericUpDown.Value = (decimal)bandwidth;206 bandwidthNumericUpDown.Value = bwDecimal; 202 207 } 203 208 var density = KernelDensityEstimator.Density(rowArray, rowArray.Length, stepWidth, bandwidth);
Note: See TracChangeset
for help on using the changeset viewer.