Function vector_sorted_quantile (o2scl)¶
-
template<class
vec_t
>
doubleo2scl
::
vector_sorted_quantile
(size_t n, const vec_t &v, double f)¶ Obtain a quantile from a sorted vector.
This is a generic version of
gsl_stats_quantile_from_sorted_data()
.If
f
is less than 0 or greater than 1, the error handler is called. Ifn
is zero, this function returns zero without calling the error handler.