pub fn median_float<T>(data: Vec<T>) -> Option<T>where T: Float + NumCast,
Returns the median value of the given data set, or None if data is empty.