I am trying to compute the lower quartile, median and upper quartile of a sorted STL vector of size n. One could achieve this by identifying the correct formulae for the quartiles for the 4 cases when n is (1) singly even, (2) doubly even, (3) ‘singly odd’ or (4) ‘doubly odd’ and using a ..

## Recent Comments