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
 Average of a part of a column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mooto

2 Posts

Posted - 08/23/2013 :  4:33:28 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.5.1
Operating System: WinXP

Hi,

what is the easiest way to get the average value of a part of a column?
Do I need to get into Labtalk for this? If yes, is there a good place to start? The sources that I found are not doing a very good job in documenting - or I might be spoiled by the Mathematica documentation.
In excel it is a trivial problem: I just use Average(A1:A5) to get the average value of column A, rows 1 to 5. Is there something similar in Origin?
Note: I know there is "statistics on columns", but I need to calculate something with the average. So I need to access that number. And the approach that uses this looks like a workaround. Ideally I'm looking for something that I can put into "set column values".

Any help would be appreciated.

Hideo Fujii

USA
1582 Posts

Posted - 08/23/2013 :  5:07:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi mooto,

You can define a range, and apply "sum" function which produces a sum object which contains
properties such as
sum.N, -.total, -.mean, -sd, -.min, and -.max
After running this function, you can keep the value by assigning to a variable(e.g., mymean=sum.mean),
or store in a cell in a worksheet cell (e.g., col(B)[1]=sum.mean).



Is it workable for you?

--Hideo Fujii
OriginLab
Go to Top of Page

mooto

2 Posts

Posted - 08/23/2013 :  6:44:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you! That should do the trick!
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 10/23/2015 :  11:12:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
For who visit this thread:

Origin 2015 version has introduced a handy tool - you can show the descriptive statistics of the
selected range in the status bar, and copy-and-paste to anywhere like in another worksheet
(by right-clicking the status bar):



--Hideo Fujii
OriginLab
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