def getMedianvalue(lst, points):
    """
    Returns the median of a list of numerics.
    :param lst: A list of numerics from which the median will be retrieved. \t
    :type lst: [numerics] \n
    :returns: The median.  \t
    :rtype: : Numeric \n
    """
    if points[1] == -1:
        if len(lst) == 1:
            return lst[0]
        else:
            medianIndex = points[0]
            return lst[points[0]]
    else:
        medianLeftIndex = points[0]
        medianRightIndex = points[1]
        return (lst[medianLeftIndex] + lst[medianRightIndex]) / 2