R/myGS.R

Defines functions myGS

Documented in myGS

# Orthogonal projection of y onto x
myGS <- function(x,y){
  out <-  ((t(x)%*%y)[1,1])/((t(x)%*%x)[1,1])*x
  return(out)
}

Try the Tex4exams package in your browser

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

Tex4exams documentation built on May 31, 2023, 8:04 p.m.