Wave "scaling" to include uncertainty / errors
jcor
Tue, 11/02/2010 - 12:29 pm
The wave error could be a "hidden" attribute of a wave much like wave scaling but not entirely - since it could not be calculated like wave scales are.
I posted a snippet for uncertainty propagation at: http://www.igorexchange.com/node/1584.
There is probably room for improvement. At the moment uncertainties are assumed to be in a separate wave. One modification that would approach your problem would be to use a 2 column wave, where the second column is the associated uncertainty.
November 2, 2010 at 04:11 pm - Permalink
junk[][0]=p
junk[][1]=1
display junk[][0]
ErrorBars junk Y,wave=(junk[][1],junk[][1])
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
November 3, 2010 at 04:56 pm - Permalink
...and you can use dimension labels if you don't want to get confused by column indices
setdimlabel 1, 1, error, junk
edit junk.ld
display junk[][%data]
ErrorBars junk Y,wave=(junk[][%error],junk[][%error])
C
November 4, 2010 at 12:52 am - Permalink
Very nice solution, I may implement that. Though the huge downside is that the data browser will no longer work.
With dimension labels the Wish List could be changed to simply add the ability for the Data Browser to manage this.
November 21, 2010 at 01:49 pm - Permalink