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.


au.computeYStatsForXLimits(x, y, xlimits)


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))
{'max': 0.9210609940028851,
 'mean': 0.91075404817778094,
 'median': 0.91075404817778094,
 'min': 0.90044710235267689,
 'std': 0.010306945825104108}

-- ToddHunter - 2013-11-25
Topic revision: r1 - 2013-11-25, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback