calculates the quantiles of histograms and sample arrays.
Q = nan_quantile(Y,q) Q = nan_quantile(Y,q,DIM) Q = nan_quantile(HIS,q)
vector or matrix of reals
probability (scalar or vector of probabilities numbers)
Q = nan_quantile(Y,q,DIM)
returns the q-th quantile along dimension DIM of sample array Y. size(Q) is equal size(Y) except for dimension DIM which is size(Q,DIM)=length(Q)
Q = nan_quantile(HIS,q)
returns the q-th quantile from the histogram HIS. HIS must be a HISTOGRAM struct as defined in HISTO2 or HISTO3. If q is a vector, the each row of Q returns the q(i)-th quantile