R/UpdateKstar.R

Defines functions UpdateKstar

Documented in UpdateKstar

UpdateKstar<-function(Kstar,Kell,Krow,y){
  if(length(y)==1){
    advec<-c(y,Krow)
    Kstar<-rbind(Kstar,advec)
    cbind(Kstar,c(advec,Kell))
  }
  else{
    adrect<-cbind(y,Krow)
    Kstar<-rbind(Kstar,adrect)
    cbind(Kstar,rbind(t(adrect),Kell))
  }
}
  

Try the svmpath package in your browser

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

svmpath documentation built on July 14, 2020, 5:06 p.m.