R/Px.R

Defines functions Px

Px <-
function(X)
{
  if(is.vector(X))
  {
    X=as.matrix(X)
  }

  res=X%*%solve(t(X)%*%X)%*%t(X)
  return(res)
}

Try the MICsplines package in your browser

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

MICsplines documentation built on Sept. 7, 2021, 5:09 p.m.