Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/09/11 00:15:33 (12 years ago)
Author:
abeham
Message:

#1465

  • Added movie view for HistogramHistory
  • Added QualityDistributionAnalyzer for analyzing the development of the quality distributions in a population
  • Added AggregatedHistogramHistoryView for displaying a histogram of the accumulated data in a history
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/histogram/HeuristicLab.Visualization.ChartControlsExtensions/3.3/HistogramControl.cs

    r5970 r5994  
    3232
    3333    private List<double> points;
     34    public int NumberOfBins {
     35      get { return (int)binsNumericUpDown.Value; }
     36      set { binsNumericUpDown.Value = value; }
     37    }
     38
     39    public int MinimumNumberOfBins {
     40      get { return (int)binsNumericUpDown.Minimum; }
     41      set { binsNumericUpDown.Minimum = value; }
     42    }
     43
     44    public int MaximumNumberOfBins {
     45      get { return (int)binsNumericUpDown.Maximum; }
     46      set { binsNumericUpDown.Maximum = value; }
     47    }
     48
     49    public int IncrementNumberOfBins {
     50      get { return (int)binsNumericUpDown.Increment; }
     51      set { binsNumericUpDown.Increment = value; }
     52    }
     53
     54    public bool CalculateExactBins {
     55      get { return exactCheckBox.Checked; }
     56      set { exactCheckBox.Checked = value; }
     57    }
     58
     59    public bool ShowExactCheckbox {
     60      get { return exactCheckBox.Visible; }
     61      set { exactCheckBox.Visible = value; }
     62    }
    3463
    3564    public HistogramControl() {
     
    6493
    6594    private void UpdateHistogram() {
    66 
     95      if (InvokeRequired) {
     96        Invoke((Action)UpdateHistogram, null);
     97        return;
     98      }
    6799      Series histogramSeries = chart.Series[SeriesName];
    68100      histogramSeries.Points.Clear();
     
    113145      double rounding = range / base10;
    114146      if (rounding <= 1.5) rounding = 1;
    115       else if (rounding <= 2) rounding = 2;
    116       else if (rounding <= 2.5) rounding = 2.5;
    117       else if (rounding <= 5) rounding = 5;
     147      else if (rounding <= 2.25) rounding = 2;
     148      else if (rounding <= 3.75) rounding = 2.5;
     149      else if (rounding <= 7.5) rounding = 5;
    118150      else rounding = 10;
    119151      return rounding * base10;
Note: See TracChangeset for help on using the changeset viewer.