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
 Forum for Origin C
 binning , mean-value
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

pirzadeh

Germany
10 Posts

Posted - 01/23/2003 :  06:34:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is there a build-in method in Origin to calculate for every 2 or more channels(rows) the mean value of the datas and to write them into a new data set?

Mike Buess

USA
3037 Posts

Posted - 01/23/2003 :  08:05:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use the ave() function. Following definition is copied from LabTalk programming guide...

########################
ave(dataset, size)

The ave(dataset, size) function breaks dataset into groups of size size, finds the average for each group, and returns a range containing these values.
########################

You could use it something like this...

col(B)=ave(col(A),2);



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