preProcess {logcondens} | R Documentation |
Compute a weighted sample from initial observations
Description
Generates weights from initial sample.
Usage
preProcess(x, xgrid = NULL)
Arguments
x |
Vector of independent and identically distributed numbers, not necessarily unique. |
xgrid |
Parameter that governs the generation of weights: If |
Value
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. |
Note
This function is not intended to be invoked by the end user.
Author(s)
Kaspar Rufibach, kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch
Lutz Duembgen, duembgen@stat.unibe.ch,
https://www.imsv.unibe.ch/about_us/staff/prof_dr_duembgen_lutz/index_eng.html