R/objectiveFast.R

Defines functions objectiveFast

Documented in objectiveFast

objectiveFast <-
function(B, P, W, lambda) {
    -sum(log(P[W])) + lambda*sum(abs(svd(B)$d))
}

Try the npmr package in your browser

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

npmr documentation built on Nov. 12, 2023, 1:08 a.m.