ee.Reducer.fixed2DHistogram
Creates a reducer that will compute a 2D histogram of the inputs using a fixed number of fixed-width bins. Values outside of the [min, max) range on either axis are ignored. The output is a 2D array of counts, and 2 1-D arrays of bucket lower edges for the xAxis and the yAxis. This reducer is suitable for use per-pixel, however it is always unweighted. The maximum count for any bucket is 2^31 - 1.
Usage | Returns | ee.Reducer.fixed2DHistogram(xMin, xMax, xSteps, yMin, yMax, ySteps) | Reducer |
Argument | Type | Details | xMin | Float | The lower (inclusive) bound of the first bucket on the X axis. |
xMax | Float | The upper (exclusive) bound of the last bucket on the X axis. |
xSteps | Integer | The number of buckets to use on the X axis. |
yMin | Float | The lower (inclusive) bound of the first bucket on the Y axis. |
yMax | Float | The upper (exclusive) bound of the last bucket on the Y axis. |
ySteps | Integer | The number of buckets to use on the Y axis. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[null,null,["Last updated 2024-09-19 UTC."],[[["Creates a 2D histogram with a fixed number of bins for analyzing data distribution across two dimensions."],["Ignores values outside the defined range on either axis and limits the maximum count per bucket to 2^31 - 1."],["Outputs a 2D array of counts, along with 1D arrays for the x and y axis bucket boundaries."],["Suitable for per-pixel use but doesn't incorporate weighting."],["Requires specifying the range and number of bins for both x and y axes using the `ee.Reducer.fixed2DHistogram` function."]]],[]]