Grrr ... new trial with code here: 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
Johannes Graumann wrote:> Grrr ... new trial with code here: 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, JohSleep brought some insight. The code here 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
Hello, There is also that previous discussion: r.789695.n4.nabble.com/peak-detection-td3086410.html Pascal Le 07/02/2013 03:22, Johannes Graumann a ?crit :> Grrr ... new trial with code here: 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 > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >