Binning data then taking stats on each bin
I know the WaveStats command can calculate the standard deviation (among other things), and one can also set the X range of the wave using /R=[startP, endP]. Having never programmed in Igor before, I'm not sure how to go about this programmatically, but I'm thinking of a placing the WaveStat command within a loop. Any help would be appreciated!
Your description is a bit confusing. You cannot calculate a standard deviation for a bin, whose value consists of a single number. You can calculate statistics on the entire Histogram wave.
July 12, 2013 at 07:21 am - Permalink
Here is a solution:
There may be a faster way to get just the standard deviation but I could not identify it.
July 12, 2013 at 09:53 am - Permalink
A.G.
WaveMetrics, Inc.
July 12, 2013 at 10:44 am - Permalink
[quote=Igor]It may be easier to use the variance function directly since it supports the optional range parameters. An even more elegant approach is using MatrixOP (naturally). If your data wave is called "ddd" and you want N bins with M elements per bin you can execute:
[/quote]
Regards,
Edward
July 17, 2013 at 09:05 am - Permalink