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

Try the MEIGOR package in your browser

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

MEIGOR documentation built on Nov. 8, 2020, 7:46 p.m.