公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Reducer.geometricMedian
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
建立縮減器,計算一組輸入內容的幾何中位數。
用量 | 傳回 |
---|
ee.Reducer.geometricMedian(numX, eta, initialStepSize) | 縮減函式 |
引數 | 類型 | 詳細資料 |
---|
numX | 整數 | 輸入維度數量。 |
eta | 浮點值,預設值為 0.001 | 做為求解器停止條件的解決方案最低改善幅度。 |
initialStepSize | 浮點數,預設值為 10 | 求解器中使用的初始步長。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eComputes the geometric median, a robust central tendency measure, across a set of input values.\u003c/p\u003e\n"],["\u003cp\u003eTakes the number of input dimensions, minimum improvement threshold (\u003ccode\u003eeta\u003c/code\u003e), and initial step size for the solver as parameters.\u003c/p\u003e\n"],["\u003cp\u003eReturns a reducer object to be applied to an \u003ccode\u003eee.FeatureCollection\u003c/code\u003e or \u003ccode\u003eee.ImageCollection\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.geometricMedian\n\nCreates a reducer that computes the geometric median across a set of inputs.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------------------------------|---------|\n| `ee.Reducer.geometricMedian(numX, `*eta* `, `*initialStepSize*`)` | Reducer |\n\n| Argument | Type | Details |\n|-------------------|-----------------------|-------------------------------------------------------------------------------------|\n| `numX` | Integer | The number of input dimensions. |\n| `eta` | Float, default: 0.001 | The minimum improvement in the solution used as a stopping criteria for the solver. |\n| `initialStepSize` | Float, default: 10 | The initial step size used in the solver. |"]]