This block selects the mid-valued input from those inputs that are not bad from as many as 16 inputs. When the block has an odd number of inputs, OUT is the value of the selected input and SELECTED is the number of the selected input. When the block has an even number of inputs, OUT is the average of the two mid-valued inputs and SELECTED is the number of the lowest-valued input of the two mid-valued inputs. For example, a block has the following inputs:
In this example OUT is equal to 19.5 (the average of IN2 and IN3) and SELECTED is 3 (IN3 is 19, the least-valued of the two mid-valued inputs).