T O P I C R E V I E W |
dcuser |
Posted - 07/29/2004 : 09:35:17 AM Hallo all,
I have written some code that helps me to pick up the peaks in my sine-like curve. The code looks like this:
LT_execute("curve.reset()"); LT_execute("%W = %[%C,'_']"); LT_execute("%W!wks.addcol(PkIndex1)"); LT_execute("%W!wks.addcol(Pkx1)"); LT_execute("%W!wks.col$(%W!wks.ncols).type = 4"); LT_execute("%W!wks.addcol(Pky1)"); LT_execute("curve.data$ = %C"); LT_execute("curve.peakIndex$ = %W_PkIndex1"); LT_execute("curve.pickPeaks.rectHeight = 0.025"); LT_execute("curve.pickPeaks.rectWidth = 0.05"); LT_execute("curve.pickPeaks.minHeight = 0.10"); LT_execute("curve.pickPeaks(1)"); LT_execute("get %W_PkIndex1 -e end"); LT_execute("for ( ii = 1; ii <= end; ii += 1) { %B = curve.data$; index = %W_pkindex1[ii]; %W_Pkx1[ii] = xvalue(index,%B); %W_Pky1[ii] = %B[index];}");
And it works really fine. But now I want/need to pick up the low marks in this curve. Is there anybody around who could help me?
many thanks, opasen
|
2 L A T E S T R E P L I E S (Newest First) |
dcuser |
Posted - 08/03/2004 : 09:56:42 AM Hello Mike,
many thanks for your hint! It works now ;))... |
Mike Buess |
Posted - 08/02/2004 : 8:12:41 PM Have you tried inverting your curve (multiply by -1) and picking peaks again?
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 08/02/2004 8:18:24 PM |
|
|