- Machine Learning Quick Reference
- Rahul Kumar
- 123字
- 2021-08-20 10:05:10
Dot product
The dot product of two vectors returns a number that happens to be scalar. It is a representation of how two vectors are associated with each other.
Geometrically, the dot product of two vectors x and y would be as follows:
x . y= ||x|| ||y|| cosθ
θ is the angle between the vector x and y.
However, algebraically, we get the following:

Geometrically, we get the following:
θ=β-α
cosθ=cos(β-α)
cosθ = cosβ cosα + sinβ sinα
cosθ = (x1/||x||) (y1/||y||) + (x2/||x||) (y2/||y||)
||x||||y|| cosθ= x1 y1 + x2y2
x . y = x1 y1 + x2y2
推薦閱讀
- 輕輕松松自動化測試
- 大數(shù)據(jù)技術(shù)基礎(chǔ)
- Hands-On Data Science with SQL Server 2017
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- 快學Flash動畫百例
- 深度學習中的圖像分類與對抗技術(shù)
- 大數(shù)據(jù)技術(shù)與應(yīng)用
- Troubleshooting OpenVPN
- Windows Server 2008 R2活動目錄內(nèi)幕
- Extending Ansible
- 格蠹匯編
- 會聲會影X4中文版從入門到精通
- INSTANT VMware vCloud Starter
- Cortex-M3嵌入式處理器原理與應(yīng)用
- 計算機應(yīng)用基礎(chǔ)實訓(職業(yè)模塊)