Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ee.Array.rightShift
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Berdasarkan elemen, menghitung pergeseran kanan bertanda dari v1 dengan v2 bit.
Penggunaan | Hasil |
---|
Array.rightShift(right) | Array |
Argumen | Jenis | Detail |
---|
ini: left | Array | Nilai sebelah kiri. |
right | Array | Nilai sebelah kanan. |
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\u003eThe \u003ccode\u003erightShift\u003c/code\u003e method performs a bitwise signed right shift operation on two arrays.\u003c/p\u003e\n"],["\u003cp\u003eIt shifts the elements of the 'left' array by the number of bits specified in the corresponding elements of the 'right' array.\u003c/p\u003e\n"],["\u003cp\u003eThe result is a new array containing the shifted values.\u003c/p\u003e\n"],["\u003cp\u003eThe original arrays, 'left' and 'right', remain unchanged.\u003c/p\u003e\n"]]],["The core function is an element-wise signed right shift operation. It takes two arrays, `left` and `right`, as input. `left` represents the value being shifted, and `right` specifies the number of bits to shift. The function, `Array.rightShift(right)`, calculates the signed right shift of each element in the `left` array by the corresponding number of bits specified in the `right` array, returning a new `Array` with the shifted results.\n"],null,["# ee.Array.rightShift\n\nOn an element-wise basis, calculates the signed right shift of v1 by v2 bits.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------|---------|\n| Array.rightShift`(right)` | Array |\n\n| Argument | Type | Details |\n|--------------|-------|-----------------------|\n| this: `left` | Array | The left-hand value. |\n| `right` | Array | The right-hand value. |"]]