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
 All Forums
 Origin Forum
 Origin Forum
 binning x

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
nweilinger Posted - 04/27/2012 : 7:41:36 PM
Hello,

The answer to my question is probably simple (i hope) but i can't seem to figure it out. I know origin has 2D binning, however i simply want to bin my y-axis data into less frequent x bins (1D bins). For example, my data samples at 3hz (3 per second) and i want origin to bin (or reduce) that data to 1hz (once per second) in mean +/- standard error. Thanks in advance!

2   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 04/30/2012 : 5:02:08 PM
Unfortunately, there is no simple answer here. 2D Binning with a 1 bin Y will give you the mean (or min, max, median, etc.) but we do not do the Standard Deviation (SD) calculation. (If we did, then you could use the 2D Binning twice : once to get the mean and once to get the SD.)

A script could be written to calculate mean and SD which would require some prompting/programming on how to bin the X data. The following approach is a bit of a hybrid. I will use Frequency Counts to determine how to do the binning and a script to get the Mean and SD values.

Given a two column worksheet with our data, select the X data column and choose Statistics : Descriptive Statistics : Frequency Counts.
Set Recalculate mode to Auto.
Using Bin Ends is fine as is leaving Min and Max Bin as Auto.
Set the Bin Size to 1 (for 1 second) by selecting the Bin Size radio and unchecking Bin Size Auto.
All we need to compute is Bin Center and Count.
Set the Output as [<input>]<input>! then click OK.
This create two columns with the bin centers and bin counts.
Now add three columns to the worksheet and set the middle of these to be an error column.
Select the last column, right click on it and choose Set Column Values.
Paste the following into the "Before Formula Scripts" box, set Recalculate the Auto and click OK.

The script uses the bin counts to calculate the stats for each sub-range of the original Y data.
couturier Posted - 04/30/2012 : 08:13:10 AM
Check menu Analysis:Data manipulation:Reduce Duplicate X Data

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000