Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
Stay organized with collections
Save and categorize content based on your preferences.
Create a reducer that will compute a histogram of the inputs. The output is a Nx2 array of the lower bucket bounds and the counts (or cumulative counts) of each bucket and is suitable for use per-pixel.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."],[[["Creates a histogram reducer to analyze data distribution across buckets."],["Customizable with parameters for maximum buckets, minimum bucket width, initial raw data size for histogram creation, and cumulative count option."],["Outputs an Nx2 array, ideal for per-pixel analysis, representing bucket boundaries and their corresponding counts."]]],["This documentation describes a reducer for computing histograms. The `ee.Reducer.autoHistogram` function generates a reducer that outputs an Nx2 array of lower bucket bounds and their counts. Key parameters include `maxBuckets` (maximum number of buckets, rounded up to a power of 2), `minBucketWidth` (minimum bucket width), `maxRaw` (values to accumulate before histogram build), and `cumulative` (boolean for cumulative counts).\n"]]