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
 max value statistics

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
jimmyr Posted - 10/29/2009 : 4:59:42 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
jimmyr Posted - 11/03/2009 : 03:51:45 AM
ok, thats a bit above my abilities!
im new to this sort of thing.

i think i will do it manually
greg Posted - 11/02/2009 : 2:42:27 PM
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]).

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