Computes the midhinge for an array of numeric values.