Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ee.Reducer.countDistinct
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menampilkan Reducer yang menghitung jumlah input yang berbeda. Jika berlaku, nama output adalah "count".
Penggunaan | Hasil |
---|
ee.Reducer.countDistinct() | Pengurang |
Tidak ada argumen.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\u003cp\u003eReturns a Reducer that calculates the number of distinct input values.\u003c/p\u003e\n"],["\u003cp\u003eThe output is typically named "count".\u003c/p\u003e\n"],["\u003cp\u003eIt's used within the Earth Engine platform and is invoked using \u003ccode\u003eee.Reducer.countDistinct()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis reducer takes no arguments.\u003c/p\u003e\n"]]],["The `ee.Reducer.countDistinct()` function returns a Reducer that calculates the number of unique input values. The output of this Reducer, when applied, represents the distinct count. It operates without any input arguments and produces a Reducer object. The default output name for the distinct count result is \"count\".\n"],null,["# ee.Reducer.countDistinct\n\nReturns a Reducer that computes the number of distinct inputs. Where applicable, the output name is \"count\".\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------|---------|\n| `ee.Reducer.countDistinct()` | Reducer |\n\n**No arguments.**"]]