Announcement: On November 13, 2024, all users will need to use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require an exception.
Stay organized with collections
Save and categorize content based on your preferences.
Create a reducer that will compute the median of the inputs. For small numbers of inputs (up to maxRaw) the median will be computed directly; for larger numbers of inputs the median will be derived from a histogram.
[[["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-07-13 UTC."],[[["This reducer calculates the median of input values, using either direct computation or a histogram-based approach depending on the input size."],["For datasets with a small number of inputs (up to the specified `maxRaw` limit), the median is computed directly."],["For larger datasets, the reducer creates a histogram with configurable maximum number of buckets (`maxBuckets`) and minimum bucket width (`minBucketWidth`) to estimate the median."],["Users can control the computation method and histogram parameters using the `maxBuckets`, `minBucketWidth`, and `maxRaw` arguments."]]],[]]