Median spline