Table Of Contents

Measures of Mean (Mode » Unimode) (G Dataflow)

    Last Modified: January 9, 2017

    Finds the most common values of a sequence.

    Use this node if the input sequence is unimodal or you expect one scalar mode result.



    Input sequence.

    x must contain at least one sample. If x is empty, this node sets mode to NaN.

    If the input sequence has a constant value, this node ignores the number of intervals and sets mode to the constant value in the input sequence:

    if x = a, mode = a.


    number of bins

    Number of histograms to use when computing estimated modes.

    Default: 100


    error in

    Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

    Default: No error



    Mode or estimated mode of the input sequence.


    error out

    Error information. The node produces this output according to standard error behavior.

    The following table demonstrates how this node finds the mode of a sequence.

    x number of bins mode Comments
    {0, 1, 3, 3, 4, 4, 4, 5, 5, 7} 1 3.5

    3.5 is the center value of the one histogram number of bins specifies.

    {0, 1, 3, 3, 4, 4, 4, 5, 5, 7} 0 4

    The node returns the exact mode 4.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported

    Recently Viewed Topics