quartile1 / quartile3

double quartile1(double* first, double* last);
double quartile3(double* first, double* last);

Returns the first or third quartile of the elements in [first, last).

Parameters:
firstBeginning iterator for the container of elements.
lastEnding iterator for the container of elements.

Returns:
First or third quartile

Usage:
double s[4] = {1.1, 2.2, 3.3, 4.4};
double q1 = quantile1(s, s + 4); double q3 = quantile3(s, s + 4);

Header:
#include "descript.h"