median method

double median()

Implementation

double median() {
  List<double> list = toList();
  list.sort();
  return list[list.length ~/ 2];
}