Displaying 1 result from an estimated 1 matches for "signal877cycle1".
2009 Feb 27
0
help with correct use of function lsfit
...t with R I would appreciate
your supervision and suggestion.
I guess the returned coefficients of the oolynomial are:
a = -1.3191398
b = 0.1233055
c = 0.9297401
Thank you very much in advance,
Maura
######################################################
## Main
tms <- t(read.table("signal877cycle1.txt"))
J <- ilogb(length(tms), base=2) + 1
y <- c(tms,rep(0,2^J - length(tms)))
y.win <- tms.ext[1:17]
ls.mat <- matrix(nrow=length(y.win),ncol=3,byrow=TRUE)
dt <- 0.033
ls.mat[,1] <- 1
ls.mat[,2] <- seq(0,dt*(length(y.win)-1),dt)
ls.mat[,3] <- ls.mat[,2]^2
############...