R/nls_fobj.R

Defines functions nls_fobj

Documented in nls_fobj

nls_fobj <-
function(x){
  
  #Trick to avoid passing lists to nls
  extra_args[[1]]<-x
	f<-do.call(fobj_global, extra_args);
	n_fun_eval <<- n_fun_eval + 1;
	
  #Return the 3rd argument which should be the vector of residuals
  
  residuals<-as.vector(f[[3]])
  #return(residuals)
}
jaegea/MEIGOR documentation built on April 8, 2024, 9:36 a.m.