The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Best method to find maximum value?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
autopilot Posted - 02/08/2009 : 10:57:47 AM
Origin Ver. and Service Release (Select Help-->About Origin): 7.5
Operating System: winxp pro

Hello,

I would like to get the suggestion from a professional about what method to use in order to find the peak value of a given 2D graph (X is abscissa, Y is ordinate)?
I need to know X value when Y is maximum.
Function is simply column A(X)-abscissa and column B(Y)-ordinate.

Thanks a lot.
5   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 02/09/2009 : 11:21:29 AM
Hi,

It may work better if you send a sample data file/Origin Project to tech so they can look at your data and make recommendations.

Easwar
OrignLab
autopilot Posted - 02/09/2009 : 10:52:46 AM
Actually the script works flawlessly, thanks once again.

I am proceeding further with the maximum finder script. Originally I was planning to implement the FFT, Adjacent averaging or Savitzky-Golay smoothing in order to get rid of the OSCILLATIONS in Y value of the function. And then only to find maximum value of the function.

Please advise me, whether there is more sophisticated method to find maximum value when many peaks are present around???

Thanks a lot.
autopilot Posted - 02/09/2009 : 10:21:16 AM
hey,

thanks a lot for your reply, this is great, I will try this script.
One question about what do you actually mean about peak and maximum positions? You mean that the "limit" function will only take the maximum value in the column regardless of the oscillation in function values?

Thanks.
Deanna Posted - 02/09/2009 : 01:06:42 AM
Hi,

The following script can get the X value when Y is maximum (suppose the worksheet that has the data is active):

//Set the index numbers for X and Y columns
xx=1;
yy=2;

%a = %(%h,yy); //Get the Y dataset name
limit %a;
%b = limit.imax; //The index of the maximum value

//Type results
type Peak X: %(%h, xx, %b);
type Peak Y: %(%h, yy, %b); 



Note that the maximum Y is not necessarily the peak position.

Deanna
OriginLab Technical Services
autopilot Posted - 02/08/2009 : 10:59:41 AM
just forgot to add, that I will use this method in a labtalk or origin c script to automate maual peak picking process.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000