Anúncio: todos os projetos não comerciais registrados para usar o Earth Engine antes de
15 de abril de 2025 precisam
verificar a qualificação não comercial para manter o acesso ao Earth Engine.
ee.Reducer.fixed2DHistogram
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Cria um redutor que calcula um histograma 2D das entradas usando um número fixo de agrupamentos de largura fixa. Os valores fora do intervalo [min, max) em qualquer eixo são ignorados. A saída é uma matriz 2D de contagens e duas matrizes 1D de limites inferiores de buckets para os eixos x e y. Esse redutor é adequado para uso por pixel, mas sempre é não ponderado. A contagem máxima para qualquer bucket é 2^31 - 1.
Uso | Retorna |
---|
ee.Reducer.fixed2DHistogram(xMin, xMax, xSteps, yMin, yMax, ySteps) | Redutor |
Argumento | Tipo | Detalhes |
---|
xMin | Ponto flutuante | O limite inferior (inclusivo) do primeiro bucket no eixo X. |
xMax | Ponto flutuante | O limite superior (exclusivo) do último agrupamento no eixo X. |
xSteps | Número inteiro | O número de intervalos a serem usados no eixo X. |
yMin | Ponto flutuante | O limite inferior (inclusivo) do primeiro bucket no eixo Y. |
yMax | Ponto flutuante | O limite superior (exclusivo) do último agrupamento no eixo Y. |
ySteps | Número inteiro | O número de intervalos a serem usados no eixo Y. |
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 2025-07-26 UTC."],[[["\u003cp\u003eCreates a 2D histogram with a fixed number of bins for analyzing data distribution across two dimensions.\u003c/p\u003e\n"],["\u003cp\u003eIgnores values outside the defined range on either axis and limits the maximum count per bucket to 2^31 - 1.\u003c/p\u003e\n"],["\u003cp\u003eOutputs a 2D array of counts, along with 1D arrays for the x and y axis bucket boundaries.\u003c/p\u003e\n"],["\u003cp\u003eSuitable for per-pixel use but doesn't incorporate weighting.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the range and number of bins for both x and y axes using the \u003ccode\u003eee.Reducer.fixed2DHistogram\u003c/code\u003e function.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.fixed2DHistogram\n\nCreates 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.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------|---------|\n| `ee.Reducer.fixed2DHistogram(xMin, xMax, xSteps, yMin, yMax, ySteps)` | Reducer |\n\n| Argument | Type | Details |\n|----------|---------|----------------------------------------------------------------|\n| `xMin` | Float | The lower (inclusive) bound of the first bucket on the X axis. |\n| `xMax` | Float | The upper (exclusive) bound of the last bucket on the X axis. |\n| `xSteps` | Integer | The number of buckets to use on the X axis. |\n| `yMin` | Float | The lower (inclusive) bound of the first bucket on the Y axis. |\n| `yMax` | Float | The upper (exclusive) bound of the last bucket on the Y axis. |\n| `ySteps` | Integer | The number of buckets to use on the Y axis. |"]]