General Histogram PtByPt (Not in Base Package)

Finds the discrete histogram of the set of input data based on the Bins specifications.

initialize, when TRUE, initializes the internal state of the VI.
max specifies the maximum value to include in the histogram. This control is ignored if the Bins input array is not empty.
input data is a set of input data.
Bins specifies the boundaries of each bin of the histogram. The input Bins is an array of clusters where each cluster defines the range of values for a bin. Each cluster contains the following elements:
lower specifies the lower boundaries of the bin.
upper specifies the upper boundaries of the bin.
inclusion specifies how to treat the boundaries of each bin. If no bin specifications are provided in the input Bins, the inputs max, min, # bins, and inclusion are used to specify a set of uniformly spaced bins.

0Lower—Lower boundary is part of the bin but not the upper boundary.
1Upper—Upper boundary is part of the bin but not the lower boundary.
2Both—Both boundaries are part of the bin.
3Neither—Excludes both boundaries from the bin.
inclusion specifies how to handle the boundaries of each bin. If array Bins is not empty, the max, min, # bins, and inclusion parameters are ignored.

0Lower includes the lower boundary
1Upper includes the upper boundary
sample length is the length of each set of incoming data. The VI processes each set of data. The default is 100. sample length must be greater than zero.
min specifies the minimum value to include in the histogram. min is ignored if the Bins input array is not empty.
# bins specifies the number of bins in the histogram. # bins is optional. # bins is ignored if the Bins input array is not empty. The default behavior is to determine the number of bins according to Sturges' Rule, number of bins = 1 + 3.3log(size of(X)).
Histogram specifies the resulting histogram.
Axis specifies the center values for each bin of Histogram. The centers of each bin are set according to the following equation and returned in the output array Axis.

center[i] = (lower + upper)/2,

where lower is the lower boundary of bin i, and upper is the upper boundary of bin i.

# outside is the output cluster. # outside contains the following three elements:
total contains the total number of points in X not falling in any bin upon successful execution. The elements above and below have meaning only if Bins are specified such that Bins[0].upper =< Bins[1].lower < Bins[1].upper,…- <Bins[k - 1].lower, and <Bins[k -1].upper, where k is the number of elements in Bins.
above represents the number of values in X above Bins[size of(Bins) - 1].upper. above represents the number of bins that were outside the last bin on the upper boundary.
below represents the number of values in X below Bins[0].lower. below represents the number of x values that were outside the first bin on the lower boundary.
error returns any error or warning condition from the VI. Refer to Point By Point Error Codes for more information about these conditions.