Contents
1
Consine Similarity
2
Trajectory Distance
Similarity Metrics Calculation in R (LLR,Correlation,Vector,Tanimoto)
-->
https://gist.github.com/geofferyzh/2494809
[
edit
]
1
Consine Similarity
#
谿瑚: AB = |A||B|Cos慮
A <- c(1,2,3,4,5) B <- c(6,7,8,9,10) sum(A*B) / (sqrt(sum(A^2)) * sqrt(sum(B^2)))
覿: 覯″一 伎 --> 襷 覯″一 蠍磯 螳 覦レ るゴる 蠍語 谿 襷 覦レ るジ 蟆伎..
覿覈: 覯″一 蠍一 螻
覯″郁 企 螳 90企 Cos慮 = 0企. 讀, 覯″一 覦レ 讌螳.
覯″郁 企 螳 0 企 Cos慮 = 1企. 讀, 覯″一 覦レ 螳る 蠍.
[
edit
]
2
Trajectory Distance
#
https://github.com/yaodi833/traj_similarity/blob/master/Trajectory%20Distance-Yao%20Di.pdf