25. find fit between current squeeze and a stored template by calculating s · t
with s and t the unit vectors of the current squeeze and a stored template.
s 1 s 2 s n t 1
t 2
t n
·fit =
a1 a2 an b1
b2
bn
· = a1 b1 + a2 b2 + + anbn = |a||b| · cos(θ)
θ
a
b
scalar product a · b :