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
 Labtalk limit

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
a_user Posted - 08/20/1998 : 3:14:00 PM
Hello,
I want to norm some datasets with a script therefor I use the following few
lines:
%L=%(%H,@Y#,1)
for(i=2;i<=%L+1;i++)
{
Limit(col($(i)));
col($(i))/=limit.yMax;
}
doc -uw;
Again it doesn't work. The script takes the right columns, but I think it
doesn't
get the right value yMax. Why?
Thanks in advance
Eberhard
2   L A T E S T    R E P L I E S    (Newest First)
Gary Lane Posted - 08/20/1998 : 3:17:00 PM
Response to LabTalk Limit

Dear Eberhard,

I made a few small changes to your script and it worked well for me. Thanks
for a nice little script...the only critical addition was that pesky ; after
the first line!

nycols=%(%H,@Y#,1);
for(i=2;i<=(nycols+1);i++) {
Limit col($(i));
col($(i))/=limit.yMax;
};

This variation also works quite nicely as the previous responder indicated.

nycols=%(%H,@Y#,1);
for(i=2;i<=(nycols+1);i++) {
sum(col($(i)));
col($(i))/=sum.max;
};

a_user Posted - 08/20/1998 : 3:16:00 PM
Re: Labtalk limit

Hi,

I have written a similar script and it works fine.
The difference is that I used

sum(%C); // Perform some basic statistics on selected column
%C /= sum.max; // Perform the normalization

rather than

Limit(col($(i)));
col($(i))/=limit.yMax;

Hope this helps.

Yours

Paul Ecker


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