R/EmbedFn.R

Defines functions EmbedFn

Documented in EmbedFn

EmbedFn <-
function(Y, PredInterval, Candidates=1:5){
  Corr = numeric(length(Candidates))
  for(E in Candidates){
    Output = NltsFn(Y, PredInterval=PredInterval, Nembed=Candidates[E], Method="Simplex", Theta=NA)
    Corr[E] = Output$Corr
  }
  plot(Corr, type="b", ylim=c(0,1), xlim=range(Candidates))
  Max = which.max(Corr)
  return(Max)
}
James-Thorson/NLTS documentation built on May 7, 2019, 10:19 a.m.