公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Reducer.intervalMean
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
建立 Reducer,計算指定百分位範圍內所有輸入的平均值。如果輸入數量較少 (最多 maxRaw),系統會直接計算平均值;如果輸入數量較多,系統會從直方圖衍生平均值。
用量 | 傳回 |
---|
ee.Reducer.intervalMean(minPercentile, maxPercentile, maxBuckets, minBucketWidth, maxRaw) | 縮減函式 |
引數 | 類型 | 詳細資料 |
---|
minPercentile | 浮點值 | 百分位數範圍的下限。 |
maxPercentile | 浮點值 | 百分位數範圍的上限。 |
maxBuckets | 整數,預設值為 null | 建構直方圖時使用的最大值範圍數量,會向上取整為 2 的乘方。 |
minBucketWidth | 浮點值,預設值為空值 | 直方圖儲存區寬度下限,或為空值,允許任何 2 的乘冪。 |
maxRaw | 整數,預設值為 null | 建構初始直方圖前要累積的值數量。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eCalculates the mean of values within a specified percentile range, using either direct computation or a histogram-based approach.\u003c/p\u003e\n"],["\u003cp\u003eOffers control over the histogram construction with parameters for maximum buckets, minimum bucket width, and the threshold for switching to histogram-based calculation.\u003c/p\u003e\n"],["\u003cp\u003eAccepts lower and upper percentile bounds as inputs to define the range of values for the mean calculation.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.intervalMean\n\nCreates a Reducer to compute the mean of all inputs in the specified percentile range. For small numbers of inputs (up to maxRaw) the mean will be computed directly; for larger numbers of inputs the mean will be derived from a histogram.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------------------------------|---------|\n| `ee.Reducer.intervalMean(minPercentile, maxPercentile, `*maxBuckets* `, `*minBucketWidth* `, `*maxRaw*`)` | Reducer |\n\n| Argument | Type | Details |\n|------------------|------------------------|-----------------------------------------------------------------------------------------------------|\n| `minPercentile` | Float | The lower bound of the percentile range. |\n| `maxPercentile` | Float | The upper bound of the percentile range. |\n| `maxBuckets` | Integer, default: null | The maximum number of buckets to use when building a histogram; will be rounded up to a power of 2. |\n| `minBucketWidth` | Float, default: null | The minimum histogram bucket width, or null to allow any power of 2. |\n| `maxRaw` | Integer, default: null | The number of values to accumulate before building the initial histogram. |"]]