ee.Array.dotProduct
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tính tích vô hướng giữa hai mảng 1 chiều.
Cách sử dụng | Giá trị trả về |
---|
Array.dotProduct(array2) | Số |
Đối số | Loại | Thông tin chi tiết |
---|
this: array1 | Mảng | Mảng 1 chiều đầu tiên. |
array2 | Mảng | Mảng 1 chiều thứ hai. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003edotProduct\u003c/code\u003e method calculates the dot product of two 1-D arrays.\u003c/p\u003e\n"],["\u003cp\u003eIt takes one argument, the second array, and returns a single number representing the dot product.\u003c/p\u003e\n"],["\u003cp\u003eBoth input arrays should be 1-dimensional.\u003c/p\u003e\n"]]],["The core functionality is to compute the dot product of two one-dimensional arrays. The `dotProduct` method, applied to `array1`, takes `array2` as an argument. Both arrays must be 1-D. It returns a single numerical value representing the dot product result. The function operates by multiplying corresponding elements from each array, and then summing the products.\n"],null,["# ee.Array.dotProduct\n\nCompute the dot product between two 1-D arrays.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------|---------|\n| Array.dotProduct`(array2)` | Number |\n\n| Argument | Type | Details |\n|----------------|-------|-----------------------|\n| this: `array1` | Array | The first 1-D array. |\n| `array2` | Array | The second 1-D array. |"]]