ee.Array.dotProduct
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำนวณผลคูณแบบดอทระหว่างอาร์เรย์ 1 มิติ 2 รายการ
การใช้งาน | การคืนสินค้า |
---|
Array.dotProduct(array2) | ตัวเลข |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ array1 | อาร์เรย์ | อาร์เรย์ 1 มิติแรก |
array2 | อาร์เรย์ | อาร์เรย์ 1 มิติที่ 2 |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]