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