FrequencyHistogram

Creates a histogram with equal frequency binning instead of equal width binning. The scale of a FrequencyHistogram is the probability density scale.

Note that equal frequency binning doesn't work with discrete distributions where probability density may be infinite at a point. Therefore, if a probability density is calculated to be infinite, this class will throw.

Members

Functions

barColor
Color barColor()

Controls the color of the bar. Defaults to blue.

barColor
This barColor(Color newColor)

Setter

Static functions

opCall
FrequencyHistogram opCall(R nums, uint nBin)

Create a FrequencyHistogram. R must be an input range with elements implicitly convertible to double. nBin must be > 0 and <= nums.length.

Inherited Members

From Plot

hasLegend
bool hasLegend()

Returns true if this plot type supports legends, otherwise false.

toFigure
Figure toFigure()

Convenience method that instantiates a Figure object with this plot. Useful for creating single-plot figures w/o a lot of boilerplate.

toLabeledFigure
Figure toLabeledFigure()

Instantiates a Figure object with this plot and also places the default axes and tick labeling and title for the plot type, if any, on the Figure. If a plot type has no default labeling, simply forwards to toFigure().

leftMost
double leftMost()

The leftmost point on the plot.

rightMost
double rightMost()

The rightmost point on the plot.

topMost
double topMost()

The topmost point on the plot.

bottomMost
double bottomMost()

The bottommost point on the plot.

legendText
string legendText()
legendText
This legendText(string newText)

Meta