MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getMedian

Method getMedian

src/common/util/ArrayStatistic.js:163–165  ·  view source on GitHub ↗

* @function ArrayStatistic.getMedian * @description 求中位数。 * @param {Array. } array 需要求中位数的参数。 * @returns {number} 返回中位数。

(array)

Source from the content-addressed store, hash-verified

161 * @returns {number} 返回中位数。
162 */
163 static getMedian(array) {
164 return this.getInstance(array).median();
165 }
166
167 /**
168 * @function ArrayStatistic.getTimes

Callers 5

getArrayStatisticMethod · 0.95
g_Function · 0.80
g_Function · 0.80
LCFunction · 0.80
LCFunction · 0.80

Calls 1

getInstanceMethod · 0.95

Tested by

no test coverage detected