C# Class Accord.Controls.HistogramBox

Histogram Box for quickly displaying a form with a histogram on it in the same spirit as System.Windows.Forms.MessageBox.
Inheritance: System.Windows.Forms.Form
显示文件 Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Hold ( ) : void

Holds the execution until the window has been closed.

SetBinWidth ( double width ) : HistogramBox

Sets the bins width in the histogram.

SetNumberOfBins ( int number ) : HistogramBox

Sets the number of bins in the histogram.

SetSize ( int width, int height ) : HistogramBox

Sets size of the scatter plot window.

SetTitle ( string text ) : HistogramBox

Sets the window title of the histogram box.

Show ( Histogram histogram, string title = "Histogram" ) : HistogramBox

Displays a histogram.

Show ( double values, string title = "Histogram" ) : HistogramBox

Displays a histogram with the specified data.

WaitForClose ( ) : void

Blocks the caller until the form is closed.

Private Methods

Method Description
HistogramBox ( ) : System
show ( string title, double values ) : HistogramBox

Method Details

Hold() public method

Holds the execution until the window has been closed.
public Hold ( ) : void
return void

SetBinWidth() public method

Sets the bins width in the histogram.
public SetBinWidth ( double width ) : HistogramBox
width double The bin width to be used.
return HistogramBox

SetNumberOfBins() public method

Sets the number of bins in the histogram.
public SetNumberOfBins ( int number ) : HistogramBox
number int The number of bins to be used.
return HistogramBox

SetSize() public method

Sets size of the scatter plot window.
public SetSize ( int width, int height ) : HistogramBox
width int The desired width.
height int The desired height.
return HistogramBox

SetTitle() public method

Sets the window title of the histogram box.
public SetTitle ( string text ) : HistogramBox
text string The desired title text for the window.
return HistogramBox

Show() public static method

Displays a histogram.
public static Show ( Histogram histogram, string title = "Histogram" ) : HistogramBox
histogram Histogram The histogram to show.
title string The title for the histogram window.
return HistogramBox

Show() public static method

Displays a histogram with the specified data.
public static Show ( double values, string title = "Histogram" ) : HistogramBox
values double The histogram values.
title string The title for the histogram window.
return HistogramBox

WaitForClose() public method

Blocks the caller until the form is closed.
public WaitForClose ( ) : void
return void