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
 Normalize by dividing by mean of a selected range
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Chryseor

1 Posts

Posted - 10/08/2012 :  10:57:02 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
operating system: 8pro sr0

hello,
is it somehow possible to select a range of column values (ie the 20 first values) and calculate the average value of this range and using then this value to normalize the whole column?
thanks a lot for our help,

cheers,

chryseor

Penn

China
644 Posts

Posted - 10/10/2012 :  04:31:16 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi chryseor,

You can use the range notation to define part of the column values, and then use the stats function to perform statistics on this range to get the average value. Then to normalize the whole column. For example, the data is stored in column A, and select column B and right click to choose Set Column Values to open the Set Values dialog. In the Before Formula Script panel, put the following script. And the upper panel will be "col(A)/ave" (not sure what is your normalization method, just simplify the example).

range rA = col(a)[1:20];  // range
stats rA;  // statistics
double ave = stats.mean;  // average

The Set Values dialog should looks like:


Penn
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