Vector of real numbers where the functions should be evaluated at.
res
An object of class "dlc", usually a result of a call to logConDens.
which
A (sub-)vector of 1:5 specifying which of the above quantities should be computed.
gam
Only necessary if smoothed = TRUE. The standard deviation of the normal kernel. If equal to
NULL, gam is chosen such that the variances of the original sample x1,…,xn
and fn∗ coincide. See logConDens for details.
print
Progress in computation of smooth estimates is shown.
Value
Matrix with rows (x0,i,ϕm(x0,i),fm(x0,i),Fm(x0,i),fm∗(x0,i),Fm∗(x0,i))
where x0,i is the i-th entry of xs.
## estimate gamma density
set.seed(1977)
x <- rgamma(200, 2, 1)
res <- logConDens(x, smoothed = TRUE, print = FALSE)
## compute function values at an arbitrary point
xs <- (res$x[100] + res$x[101]) / 2
evaluateLogConDens(xs, res)
## only compute function values for non-smooth estimates
evaluateLogConDens(xs, res, which = 1:3)