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)
}

Try the nwfscNLTS package in your browser

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

nwfscNLTS documentation built on May 2, 2019, 4:31 p.m.