public Optional<Double> median(){
  if (isEmpty())   return Optional.empty();
  return Optional.of(percentile(50));
}

public Optional < Double > median ( ) { if ( isEmpty ( ) ) return Optional . empty ( ) ; return Optional . of ( percentile ( 50 ) ) ; }
return the median of the histogram .
