Finds the continuous histogram of a signal.
Representation for the output.
Name | Description |
---|---|
sample count | Represents the value of each bin as the number of samples in that bin. |
percent of total | Represents the value of each bin as a percentage of the total. |
Default: sample count
A Boolean to determine initialization of the internal state of the node.
True | Initializes the internal states to zero. |
False | Initializes the internal states to the final states from the previous call of this node. |
This node automatically initializes the internal state to zero on the first call and runs continuously until this input is True. For a large data sequence consisting of smaller blocks, when this input is True, this node calculates the histogram of the current block only and ignores previous blocks.
Default: False
Number of bins in the histogram.
Default: 10
Maximum value to include in the histogram.
Default: 0
Minimum value to include in the histogram.
Default: 0
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
The boundary of each bin to handle.
If bin specifications are provided in bins, this node uses the inclusion in bins instead.
Name | Description |
---|---|
lower | Includes the lower boundary. |
upper | Includes the upper boundary. |
Determining the Bin Widths When inclusion Is lower
If inclusion is set to lower, the bin widths are determined according to the following equations.
where
Determining the Bin Widths When inclusion Is upper
If inclusion is set to upper, the bin widths are determined according to the following equations.
where
Default: lower
The histogram of the input signal.
This input accepts a cluster or a 1D array of clusters.
An array of the center values of the bins of the histogram.
Discrete histogram of the input signal.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Information about points that do not fall in any bin upon successful execution of the node.
Total number of values in signal that do not fall in any bin upon successful execution.
Number of values in signal below the first bin on the lower boundary.
Number of values in signal above the last bin on the upper boundary.
The histogram is a frequency count of the number of times that a specified frequency bin occurs in the input sequence. The node constructs histogram as follows.
The following equation calculates the width of the frequency bin Δx.
where max is the maximum, min is the minimum, and m is the number of bins.
The node calculates the center of each frequency bin according to the following equation.
The node defines the range of the ith frequency bin according to the following definition.
The node scans the input sequence, calculates the number of samples in each frequency bin from 0 to m - 1, and returns the histogram.
The following illustration shows the waveform of an input signal.
This example configures the node using the following input values:
Where This Node Can Run:
Desktop OS: Windows
FPGA: DAQExpress does not support FPGA devices