interval2center takes as argument a range of values interval or a list of ranges of values. interval2center returns the center of this range or the list of centers of these ranges. Input:
Output:
Input: