computeYStatsForXLimits
Return to directory of Todd's CASA extensions
Computes the Y-axis statistics (mean, std, median, min, max) over the specified
x-axis range (using numpy), rather than over the whole x-axis range. Returns a dictionary.
See also
computeYLimitsForXLimits.
Usage:
au.computeYStatsForXLimits(x, y, xlimits)
Example:
CASA <2>: import numpy as np
CASA <3>: x=np.array(range(20))
CASA <4>: y=np.cos(x/20.)
CASA <5>: au.computeYStatsForXLimits(x,y,range(8,12))
Out[5]:
{'max': 0.9210609940028851,
'mean': 0.91075404817778094,
'median': 0.91075404817778094,
'min': 0.90044710235267689,
'std': 0.010306945825104108}
--
ToddHunter - 2013-11-25