CHistogram:SetBinCount


The SetBinCount method forces an exact number of bins to be placed between the specified minimum and maximum data values. The bin width is calculated to meet this condition.

Syntax

CHistogram:SetBinCount( nCount, nMinVal, nMaxVal )

bullet.gif    nCount is the number of bins to use.

bullet.gif    nMinVal is the minimum data value used for the histogram.

bullet.gif    nMaxVal is the maximum data value used for the histogram.

Remarks

This method is used to create an exact number of histogram bins. If the data all have integer values, then nCount, nMinVal, and nMaxVal should be chosen so that the bin width is also an integer value. See the Remarks for the SetBinAuto method for a discussion of histogram aliasing. If you do not call one of the SetBin methods, Mira defaults to this binning option.

Related Topics

CHistogram Class, SetBinAuto, SetBinWidth


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.