Table Of Contents

Clip Array (G Dataflow)

Version:
    Last Modified: January 9, 2017

    Clips the elements of an array to within the bounds of specific upper limit and lower limit.

    connector_pane_image
    datatype_icon

    input array

    Input array to be clipped.

    datatype_icon

    upper limit

    Greater than or equal to the lower limit. If upper limit is less than lower limit, this node sets the sequence clipped array to an empty array and returns an error.

    Default: 0

    datatype_icon

    lower limit

    Less than or equal to the upper limit.

    Default: 0

    datatype_icon

    error in

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

    Default: No error

    datatype_icon

    clipped array

    The input array subjected to the upper limit and lower limit.

    datatype_icon

    error out

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

    Algorithm for Clipping Arrays

    Let the sequence Y represent the output sequence clipped array. Then the elements of Y are related to the elements of input array by the following equation:

    Y i = ( a x i > a x i b x i a b x i < b

    for i = 0, 1, 2, ..., n - 1,

    where

    • x is input array
    • n is the number of elements in input array
    • a is upper limit
    • b is lower limit

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics