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
 Labtalk limit
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a_user

USA
0 Posts

Posted - 08/20/1998 :  3:14:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

a_user

USA
0 Posts

Posted - 08/20/1998 :  3:16:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

Gary Lane

USA
150 Posts

Posted - 08/20/1998 :  3:17:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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;
};

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