ee.Reducer.histogram
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
יוצרים פונקציית צמצום שתחשב היסטוגרמה של הקלט.
שימוש | החזרות |
---|
ee.Reducer.histogram(maxBuckets, minBucketWidth, maxRaw) | הפחתה |
ארגומנט | סוג | פרטים |
---|
maxBuckets | מספר שלם, ברירת מחדל: null | המספר המקסימלי של קטגוריות לשימוש כשיוצרים היסטוגרמה. המספר יעוגל כלפי מעלה לחזקה של 2. |
minBucketWidth | מספר ממשי (float), ברירת מחדל: null | הרוחב המינימלי של משבצת בהיסטוגרמה, או null כדי לאפשר כל חזקה של 2. |
maxRaw | מספר שלם, ברירת מחדל: null | מספר הערכים שיש לצבור לפני בניית ההיסטוגרמה הראשונית. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eThe \u003ccode\u003eee.Reducer.histogram()\u003c/code\u003e creates a reducer for computing a histogram of image values within regions.\u003c/p\u003e\n"],["\u003cp\u003eIt allows for customization through optional parameters like \u003ccode\u003emaxBuckets\u003c/code\u003e, \u003ccode\u003eminBucketWidth\u003c/code\u003e, and \u003ccode\u003emaxRaw\u003c/code\u003e to manage the histogram's structure and initial accumulation.\u003c/p\u003e\n"],["\u003cp\u003eUsers can define the maximum number of buckets, set the minimum width for each bucket, and control the initial data accumulation for building the histogram.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.histogram\n\nCreate a reducer that will compute a histogram of the inputs.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------------------|---------|\n| `ee.Reducer.histogram(`*maxBuckets* `, `*minBucketWidth* `, `*maxRaw*`)` | Reducer |\n\n| Argument | Type | Details |\n|------------------|------------------------|-----------------------------------------------------------------------------------------------------|\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. |"]]