Displaying 2 results from an estimated 2 matches for "errorfunct".
Did you mean:
errorfunc
2007 Jan 03
1
optim
Hi!
I'm trying to figure out how to use optim... I get some really strange results, so I guess I got something wrong.
I defined the following function which should be minimized:
errorFunction <- function(localShifts,globalShift,fileName,experimentalPI,lambda)
{
lambda <- 1/sqrt(147)
# error <- abs(errHuber(localShifts,globalShift,
# "/home/sarah/Semesterarbeit/Sequences/R/R1593_filtered.data",3.48)) +
# sum(abs(localShifts))*lambda
error <- sum(...
2002 May 14
2
least summed square distance + fit
...ing x,y,z coords):
441 447 0
265 407 0
374 223 0
288 574 0
669 309 0
591 195 0
595 475 0
424 351 0
I get a second matrix (subject data) that is similiar to the above
matrix but it is scaled, translated and rotated (and of course a little
inprecise).
Also I have an errorfunction that sums up the squared distances of
corresponding points of orig matrix and subject matrix.
And here comes my problem:
I now need an fitting function that scales, rotates and translates my
subject matrix so that the error (computed by the errorfunction) is
minimized.
Since I am new to R a...