ee.Reducer.fixedHistogram
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Tworzy funkcję redukującą, która oblicza histogram danych wejściowych przy użyciu stałej liczby zasobników o stałej szerokości. Wartości spoza zakresu [min, max) są ignorowane. Dane wyjściowe to tablica Nx2 zawierająca dolne krawędzie przedziałów i liczby (lub skumulowane liczby) i nadaje się do użycia na poziomie piksela.
Wykorzystanie | Zwroty |
---|
ee.Reducer.fixedHistogram(min, max, steps, cumulative) | Ograniczenie |
Argument | Typ | Szczegóły |
---|
min | Liczba zmiennoprzecinkowa | Dolna granica (włącznie) pierwszego zasobnika. |
max | Liczba zmiennoprzecinkowa | Górna granica (bez jej uwzględnienia) ostatniego zasobnika. |
steps | Liczba całkowita | Liczba zasobników do użycia. |
cumulative | Wartość logiczna, domyślnie: false | Gdy ma wartość PRAWDA, generuje histogram skumulowany. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eGenerates a histogram with a fixed number of bins within a specified range (min, max).\u003c/p\u003e\n"],["\u003cp\u003eIgnores values outside the defined range and is suitable for per-pixel operations.\u003c/p\u003e\n"],["\u003cp\u003eOutputs a Nx2 array containing bucket lower edges and counts (or cumulative counts).\u003c/p\u003e\n"],["\u003cp\u003eOffers flexibility to generate cumulative histograms using the 'cumulative' parameter.\u003c/p\u003e\n"],["\u003cp\u003eCan be easily applied per-pixel for detailed image analysis.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.fixedHistogram\n\nCreates a reducer that will compute a histogram of the inputs using a fixed number of fixed width bins. Values outside of the \\[min, max) range are ignored. The output is a Nx2 array of bucket lower edges and counts (or cumulative counts) and is suitable for use per-pixel.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------|---------|\n| `ee.Reducer.fixedHistogram(min, max, steps, `*cumulative*`)` | Reducer |\n\n| Argument | Type | Details |\n|--------------|-------------------------|--------------------------------------------------|\n| `min` | Float | The lower (inclusive) bound of the first bucket. |\n| `max` | Float | The upper (exclusive) bound of the last bucket. |\n| `steps` | Integer | The number of buckets to use. |\n| `cumulative` | Boolean, default: false | When true, generates a cumulative histogram. |"]]