R/sharpen.R

Defines functions sharpen

Documented in sharpen

sharpen <-
function(x, y, lambda, B) {
    # result of sharpening operation using penalty summarized by matrix B
    # x, y are vectors of n original observations
    # output is the vector of sharpened y values
    solve(diag(rep(1, length(y)))+lambda*B%*%t(B), y)
}

Try the CHsharp package in your browser

Any scripts or data that you put into this service are public.

CHsharp documentation built on May 1, 2019, 6:48 p.m.