Johannes Graumann wrote: > Grrr ... new trial with code here: http://pastebin.com/RjHNNG9J > Maybe the amount of inline-code prevented posting? > > Hello, > > I am writing a simple peak detector and it works quite well ... however > there's one special case below, that I can't get my head wrapped around > ... the problem is in the "Deal with not fully qualified peaks at the > sequence extremes" section, but I cannot seem to come up with a condition > that would be met in the special case below and base a fix on it ... mind > completely poisoned with trial solutions that didn't work ... > > A fresh hint anyone? > > Sincerely, Joh
Sleep brought some insight. The code here http://pastebin.com/UXzbzqp8 works for now - I have already quite a number of test cases that gave me problems and now don't ... probably more corner cases somewhere, but they will be dealt with as they show up. Cheers, Joh ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.