Extract minMax and median from Sample.