THRESHOLD_QUANTILE
Name
THRESHOLD_QUANTILE
Purpose
This function estimates the quantiles of the given thresholds in the input
data array.
Category
Statistics
Calling Sequence
result = threshold_quantile( data, threshold )
Inputs
DATA: A numerical array of data, of size N_DATA.
THRESHOLD: A numerical vector listing thresholds to find in DATA and for
which to estimate their quantiles. Of length N_THRESHOLD
Keyword Parameters
PRESORTED: If set then the function assumes that the values in DATA have
already been sorted in ascending order, thus running more efficiently.
The default is to assume that they have not been sorted and thus to
spend some time sorting them.
Outputs
RESULT: A numerical array containing the N_THRESHOLD quantile values
corresponding to the N_THRESHOLD thresholds in DATA as specified in
THRESHOLD.
Uses
-
Procedure
This function essentially inverts the method used in
quantile_threshold.pro.
Example
data = randomn( 2, 100 )
threshold = [ -1., 1. ]
result = threshold_quantile( data, threshold )
Modification History
Written by: Daithi Stone ([email protected]), 2012-06-01
Modified: DAS, 2012-07-05 (Added PRESORTED keyword)