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
 How to obtain cumulative data 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

praveen248

India
10 Posts

Posted - 05/24/2016 :  05:42:45 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin 2015:
Hi,
I'm having a column of data
how should i perform cumulative data and standardize functions as in excel
SUM(a$26:a26)

STANDARDIZE(x,mean,stddev)

could you please tell me the commands in labtalk for doing the same

Praveen

snowli

USA
1426 Posts

Posted - 05/24/2016 :  3:36:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello, we also have sum() function for this.

E.g. suppose you have col(A) filled with values.
In F(X) cell of column B, enter sum(col(A))

U will get cumulative values.


Excel's Standardize function calculates (x-mean)/sd
You can enter this (col(A)-col(B))/col(C) in F(X) cell of column D, suppose each row of your column A, B and C contains x value, mean and sd.

If mean and sd only shows in 1st cell of B and C, you can enter the following in F(X) cell of column D.
(col(A)-col(B)[1])/col(C)[1]


Thanks, Snow
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 05/24/2016 :  5:11:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Praveen,

In addition to the Snow's suggestions, if you simply want to convert all values in a column to their Z values,
you can use the rnormalize x-function (which corresponds to "Analysis: Math: Normalize Columns" menu) e.g.,
rnormalize irng:=Col(A) method:=snd orng:=<new>;
Hope this also helps.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 05/24/2016 5:16:01 PM
Go to Top of Page

praveen248

India
10 Posts

Posted - 05/25/2016 :  03:18:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the reply guys.. very helpful really

B.V.Praveen
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