Method ao/bin_data


  BIN_DATA rebins aos data, on logarithmic scale, linear scale, or arbitrarly chosen.
  The rebinning is done taking the mean of the bins included in the range
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  DESCRIPTION: BIN_DATA rebins aos data, on logarithmic scale, linear scale, or arbitrarly chosen.
  The rebinning is done taking the mean of the bins included in the range
 
  CALL:        bs = bin_data(a1,a2,a3,...,pl)
               bs = bin_data(as,pl)
               bs = as.bin_data(pl)
 
  INPUTS:      aN   - input analysis objects
               as   - input analysis objects array
               pl   - input parameter list
 
  OUTPUTS:     bs   - array of analysis objects, one for each input
 
  Parameters Description
 
  The code is inherited from D Nicolodi, UniTN
 
  VERSION:    $Id: bin_data.m,v 1.21 2012/01/31 20:06:27 mauro Exp $
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details
Access public
Defining Class ao
Sealed 0
Static 0

Parameter Description

Default

no description
Key Default Value Options Description
METHOD 'MEAN'
  • 'MEAN'
  • 'MEDIAN'
  • 'MAX'
  • 'MIN'
  • 'RMS'
  • 'WMEAN'
method for binning. Choose from:
  • mean
  • median
  • max
  • min
  • rms
  • weighted mean (weights can be input or are taken from data dy)
XSCALE 'LOG'
  • 'LOG'
  • 'LIN'
scaling of binning. Choose from:
  • log - logaritmic
  • lin - linear
RESOLUTION 10 none When setting logaritmic x scale, it sets the number of points per decade.
When setting linear x scale, it sets the number of points.
XVALS [] none List of x values to evaluate the binning between.
It may be a vector or an ao, in which case it will take the x field
WEIGHTS [] none List of weights for the case of weighted mean.
If empty, weights will be taken from object(s) dy field as w = 1/dy^2
RANGE [] none Range of x where to operate.
If empty, the whole data set will be used
INHERIT_DY 1
  • 1
  • 0
Choose what to do in the case of mean, and bins with only one point. Choose from:
  • 'true' - take the uncertainty from the original data, if defined
  • 'false' - set it to Inf so it weighs 0 in averaged means
back to top back to top

Some information of the method ao/bin_data are listed below:
Class name ao
Method name bin_data
Category Signal Processing
CVS Version $Id: bin_data.m,v 1.21 2012/01/31 20:06:27 mauro Exp $
Min input args 1
Max input args -1
Min output args 1
Max output args -1




©LTP Team