Try   HackMD

0<ϵ1<1
0<ϵ2<1

LCSSδ,ϵ1,ϵ2,t,l(Sp,Sp) denoted as
M(Sp,Sq)

M(Sp,Sq)={0,    if  Sp=  or  Sq=local+M(SpSpn, SqSqn),    if a ϵ1Max{ϵ1aϵ1ϵ2+M(SpSpn, SqSqn)M(SpSpn, Sq),            if ϵ1<aϵ2M(Sp, SqSqn)Max{M(SpSpn, Sq)       if ϵ2<aM(Sp, SqSqn)

where

local =
w1
x
d(Sp,Sq)
+
w2
x
|tpntqm|

a
=
d(Sp,Sq)

0<LCSSδ,ϵ1,ϵ2,t,l(Sp,Sq)=M(Sp,Sq)min(n,m)

Similarity is below,

Sim(δ,ϵ1,ϵ2,t,l,Sp,Sq)=α1×LCSSδ,ϵ1,ϵ2,t,l(Sp,Sp)+α2×|(tpntp1)(tqmtq1)|min(n,m)


- ADJUSTMENT -
Define:

SpatialMax > 地圖上最長距離
TemporalMax
> 有興趣的時間長度

local =
w1
x
d(Sp,Sq)SpatialMax
+
w2
x
|tpntqm|TemporalMax

a =
d(Sp,Sq)SpatialMax

Sim(δ,ϵ1,ϵ2,t,l,Sp,Sq)=α1×LCSSδ,ϵ1,ϵ2,t,l(Sp,Sp)min(n,m)+α2×|(tpntp1)(tqmtq1)|Temporalmax

M(Sp,Sq)={0,    if  Sp=  or  Sq=local+M(SpSpn, SqSqn),    if a ϵ1Max{ϵ1aϵ1ϵ2+M(SpSpn, SqSqn)M(SpSpn, Sq),            if ϵ1<aϵ2M(Sp, SqSqn)Max{M(SpSpn, Sq)       if ϵ2<aM(Sp, SqSqn)

Correction or called trying-

local =
w1
x (1 -
d(Sp,Sq)SpatialMax
) +
w2
x (1 -
|tpntqm|TemporalMax
)

10/18


result:

pattern (0,0) (1,0) (2,0) (3,0)
observed 0 0 0 0 0
(0,0) 0 1 0.66 0.33 0
(1,0) 0 0.66 2 1.33 0.66

stlcss_score = 0.66
similarity = 0.333

SpatialMax = 3.0

Adjustment

M(Sp,Sq)={0,    if  Sp=  or  Sq=Max{local+M(SpSpn, SqSqn)M(SpSpn, Sq),       if a ϵ1M(Sp, SqSqn)Max{ϵ1aϵ1ϵ2+M(SpSpn, SqSqn)M(SpSpn, Sq),            if ϵ1<aϵ2M(Sp, SqSqn)Max{M(SpSpn, Sq)       if ϵ2<aM(Sp, SqSqn)

result:

pattern (0,0) (1,0) (2,0) (3,0)
observed 0 0 0 0 0
(0,0) 0 1 1 1 1
(1,0) 0 1 2 2 2

stlcss_score = 2.0
similarity = 1.0

SpatialMax = 3.0

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

ST-LCSS score : 8.789181365735503
similarity : 0.9765757073039448
SpatialMax
: 6.708203932499369
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

weighting formula

ai={1,     if d(Spi,Sqi)ϵ1ϵ1d(Spi,Sqi)ϵ1ϵ2,     if ϵ1<d(Spi,Sqi)ϵ20,     if ϵ2<d(Spi,Sqi)

Score =
i=0α+βwi.aii=0α+βai

wi={2iα,     if iα21+iβ,     if i>α