search for: getexpmat

Displaying 1 result from an estimated 1 matches for "getexpmat".

2007 Apr 16
1
nls with algorithm = "port", starting values
...nls.R transforms the starting values (the other options do something else): nls_port_fit <- function(m, start, lower, upper, control, trace) { ## Establish the working vectors and check and set options p <- length(par <- as.double(start)) Example: ## exponentially decaying data getExpmat <- function(theta, t) { conc <- matrix(nrow = length(t), ncol = length(theta)) for(i in 1:length(theta)) { conc[, i] <- exp(- theta[i] * t) } conc } expsum <- as.vector(getExpmat(c(.05,.005), 1:100) %*% c(1,1)) expsumNoisy <- expsum +...