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 for Programming
 LabTalk Forum
 averaging a range in a dataset
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dlrla

Germany
Posts

Posted - 12/11/2006 :  11:19:11 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
My aim is the following:
I need to get the mean value (average) of a certain range in a dataset.

average data1_b -b 10 -e 20

would be good. However, I need it without overwriting of data1_b.
Sum() and ave() do not take care of my desired range.

Who can help me?

Thanks in advance, Frank

Origin Version (Select Help-->About Origin): 7.5
Operating System: xp

Edited by - dlrla on 12/11/2006 11:19:50 AM

Edited by - dlrla on 12/11/2006 11:24:10 AM

Mike Buess

USA
3037 Posts

Posted - 12/11/2006 :  11:47:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Frank,

Try this...

set Data1_B -bs 10; // temporarily set beginning of dataset range to 10
set Data1_B -es 20; // temporarily set end of dataset range to 20
sum(Data1_B); // sum dataset over current range
sum.mean=; // report the mean value

Mike Buess
Origin WebRing Member
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