R/objective1TV.R

Defines functions objective1TV

Documented in objective1TV

objective1TV <- function(x,T,phi,y,lambda) {
  # Part of R1Magic by mehmet.suzen@physics.org
  X  <- T %*% x
  OF <- norm( phi %*% X - y , c("F") ) ^ 2 +  lambda * TV1 (X)
 return (OF)
}

Try the R1magic package in your browser

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

R1magic documentation built on Aug. 27, 2023, 5:07 p.m.