computePercentiles

Return to directory of Todd's CASA extensions

Computes the requested percentile values for a data array.

Usage:

au.computePercentiles(data, values=[10, 25, 50, 75, 90])

Example:

CASA <30>: au.computePercentiles([1,2,3,4,5,6,7,6,5,4,3,2,1])
  Out[30]: {10: 1.2000000000000002, 25: 2.0, 50: 4.0, 75: 5.0, 90: 6.0}

-- ToddHunter - 2015-04-20
Topic revision: r1 - 2015-04-20, 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