preProcessX {modehunt} | R Documentation |
Prepare data vector according to available information on support endpoints of f
Description
Preprocesses the initial data vector X.raw according to whether the upper and/or lower endpoint of the support of f is known.
Usage
preProcessX(X.raw, lower = -Inf, upper = Inf)
Arguments
X.raw |
Vector of observations. |
lower |
Lower support point of |
upper |
Upper support point of |
Details
Depending whether lower
and upper
are known, the vector of raw observations X.raw
is supplemented by lower
and/or upper
and finally sorted.
Value
Sorted vector of (processed) observations.
Note
This function is called by modeHunting
, modeHuntingApprox
,
and modeHuntingBlock
.
This function was derived from MatLab code provided on Lutz Duembgen's webpage,
http://www.staff.unibe.ch/duembgen.
Author(s)
Kaspar Rufibach, kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch
Guenther Walther, gwalther@stanford.edu,
www-stat.stanford.edu/~gwalther