Displaying 1 result from an estimated 1 matches for "ts_templat".
Did you mean:
ts_template
2006 May 10
2
problems with optimize (again)
Can someone please explain what the $minimum result of the optimize
function actually is?
I'm trying to optimize the function:
fitIT<-function(ampFac,ts_wave1,ts_template){
template<-stretchWaveTime(ts_template,ampFac)
fit<-calcFit(ts_wave1,template)
return(fit)
}
with
>optimize(f=fitIT,interval=c(0.5,4),ts_wave1=test.data[,1],ts_template=test.data[,1])
$minimum
[1] 3.764685
$objective
[1] 1.037864
however when I run
> calcFit(test.data[,...