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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 max value statistics
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jimmyr

United Kingdom
4 Posts

Posted - 10/29/2009 :  4:59:42 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8 and Service Release (Select Help-->About Origin):
Operating System: Xp X64

I have a worksheet with a series of temperatures for x values and lots of series of intensities as Y values from many samples. ive found how to use the statistics to give me the max value for each sample, but it doesnt tell me the X value at that point. is this possible? I have way too much data to do it manually.

thanks in advance

greg

USA
1379 Posts

Posted - 11/02/2009 :  2:42:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can do this with script using the limit command which has the syntax:
limit <dataset>
where <dataset> is a Y dataset with implied X and sets the limit structure as follows:
limit.IMAX The row index where maximum Y occurs
limit.IMIN The row index where minimum Y occurs
limit.SIZE The size of the dataset
limit.XMAX The maximum value in the X dataset
limit.XMIN The minimum value in the X dataset
limit.YMAX The maximum value in the Y dataset
limit.YMIN The minimum value in the Y dataset

So you could use this script in the Before Formula Scripts section of Set Column Values for column b in this case:
limit col(b);
rowatmaxy = limit.imax;
rowatminy = limit.imin;
col(b)[C]$ = Max Y of $(limit.ymax)
occurs at X of $(xof(col(B))[rowatmaxy]),
Min Y of $(limit.ymin)
occurs at X of $(xof(col(B))[rowatminy]).
Go to Top of Page

jimmyr

United Kingdom
4 Posts

Posted - 11/03/2009 :  03:51:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
ok, thats a bit above my abilities!
im new to this sort of thing.

i think i will do it manually
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000