Compute a weighted sample from initial observations
Generates weights from initial sample.
preProcess(x, xgrid = NULL)
x |
Vector of independent and identically distributed numbers, not necessarily unique. |
xgrid |
Parameter that governs the generation of weights: If |
x |
Vector of unique and sorted observations deduced from the input |
w |
Vector of corresponding weights, normalized to sum to one. |
sig |
Standard deviation of the inputed observations. This quantity is needed when computing the smoothed
log-concave density estimator via |
n |
Number of initial observations. |
This function is not intended to be invoked by the end user.
Kaspar Rufibach, kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.