asdmay / leap_practice

0 stars 1 forks source link

時間的類似度を求める際にも線形補間を用いるようにした #44

Closed otknoy closed 8 years ago

otknoy commented 8 years ago

線形補間を用いる前後の結果を貼っておく。

before

otknoy@debian:~/repos/leap_practice/tests$ node test_distance.js 
ts1_name,ts2_name,score
sin(slow),sin(slow),0
sin(slow),sin(normal),0.31258122521776394
sin(slow),sin(fast),1.7909762348779006
sin(slow),sin(slow_fast),0.8597075329430575
sin(slow),sin(fast_slow),1.1216776589187074
sin(slow),sin(slow_fast_gradually),3.7312241674135103
sin(slow),sin(fast_slow_gradually),11.199617546672524
sin(slow),sin(slow_R),1.5729541337191772e-10
sin(slow),sin(normal_R),3188.2389386997706
sin(slow),sin(fast_R),6228.433355940993
sin(slow),sin(fast_slow_R),21527.8689458634
sin(slow),sin(slow_fast_R),28407.061633681966
sin(slow),sin(slow_fast_gradually_R),12869.40471770568
sin(slow),sin(fast_slow_gradually_R),27380.314440281014
sin(slow),circle(fast),13458.267356019755
sin(slow),circle(normal),17856.217950844555
sin(slow),circle(slow),22267.18011623445
sin(slow),circle(slow_fast),43845.91369691211
sin(slow),circle(fast_slow),45658.48077448982
sin(slow),circle(fast_slow_gradually),41583.890585119014
sin(slow),circle(slow_fast_gradually),28657.28287364407
sin(slow),circle(slow_R),19233.600713103704
sin(slow),circle(normal_R),15577.328649916313
sin(slow),circle(fast_R),17231.978489311263
sin(slow),circle(slow_fast_R),38213.481177942944
sin(slow),circle(fast_slow_R),40009.25199743667
sin(slow),circle(slow_fast_gradually_R),25058.48607819607
sin(slow),circle(fast_slow_gradually_R),34452.094086204255
sin(slow),h_line(slow),1711.8386511626293
sin(slow),h_line(normal),1468.8866200996592
sin(slow),h_line(fast),1244.921404339886
sin(slow),h_line(fast_slow),2493.7717734084927
sin(slow),h_line(slow_fast),1974.9131834603472
sin(slow),h_line(fast_slow_gradually),2371.7524510256476
sin(slow),h_line(slow_fast_gradually),1399.1974513858072
sin(slow),h_line(slow_R),48833.65524279325
sin(slow),h_line(normal_R),48525.62854592952
sin(slow),h_line(fast_R),51430.215929887454
sin(slow),h_line(slow_fast_R),65151.88129529764
sin(slow),h_line(fast_slow_R),72356.57589534656
sin(slow),h_line(slow_fast_gradually_R),43613.18211910572
sin(slow),h_line(fast_slow_gradually_R),64225.830131655806
sin(slow),v_line(slow),116170.9892839083
sin(slow),v_line(normal),115732.57714173105
sin(slow),v_line(fast),122571.03739562494
sin(slow),v_line(slow_fast),155514.97885690504
sin(slow),v_line(fast_slow),172200.61880860655
sin(slow),v_line(slow_fast_gradually),104034.25199523248
sin(slow),v_line(fast_slow_gradually),152093.8612168734
sin(slow),v_line(slow_R),98611.72621852049
sin(slow),v_line(normal_R),96132.37950023352
sin(slow),v_line(fast_R),96762.05860411897
sin(slow),v_line(slow_fast_R),129360.59343839166
sin(slow),v_line(fast_slow_R),145481.6542305989
sin(slow),v_line(slow_fast_gradually_R),87802.54496412238
sin(slow),v_line(fast_slow_gradually_R),130395.80115652503
otknoy@debian:~/repos/leap_practice/tests$ 

after

otknoy@debian:~/repos/leap_practice/tests$ node test_distance.js 
ts1_name,ts2_name,score
sin(slow),sin(slow),0
sin(slow),sin(normal),4.655489283926771
sin(slow),sin(fast),13.634268160902206
sin(slow),sin(slow_fast),1.14017473308839
sin(slow),sin(fast_slow),1.3590799796365456
sin(slow),sin(slow_fast_gradually),15.095233606608582
sin(slow),sin(fast_slow_gradually),9.357258238510948
sin(slow),sin(slow_R),7.8748494007641e-11
sin(slow),sin(normal_R),47484.656838792675
sin(slow),sin(fast_R),47415.554122635804
sin(slow),sin(fast_slow_R),29268.922388492865
sin(slow),sin(slow_fast_R),37674.4563411358
sin(slow),sin(slow_fast_gradually_R),52065.129800663686
sin(slow),sin(fast_slow_gradually_R),22876.198388172605
sin(slow),circle(fast),47379.26783689885
sin(slow),circle(normal),45323.289105836615
sin(slow),circle(slow),44209.30104294851
sin(slow),circle(slow_fast),36725.504815187574
sin(slow),circle(fast_slow),35211.8028455584
sin(slow),circle(fast_slow_gradually),38727.57717311089
sin(slow),circle(slow_fast_gradually),56471.74187721262
sin(slow),circle(slow_R),38598.17121395659
sin(slow),circle(normal_R),39545.1964134855
sin(slow),circle(fast_R),55335.095745784565
sin(slow),circle(slow_fast_R),32007.757819959974
sin(slow),circle(fast_slow_R),30855.119781364363
sin(slow),circle(slow_fast_gradually_R),49379.9905553178
sin(slow),circle(fast_slow_gradually_R),32085.649363848086
sin(slow),h_line(slow),2439.6349798606934
sin(slow),h_line(normal),2049.5012774167285
sin(slow),h_line(fast),2138.115778258658
sin(slow),h_line(fast_slow),1925.409602716487
sin(slow),h_line(slow_fast),1653.0097697778083
sin(slow),h_line(fast_slow_gradually),2207.8670721089743
sin(slow),h_line(slow_fast_gradually),2754.8141565792725
sin(slow),h_line(slow_R),69595.51558428838
sin(slow),h_line(normal_R),67706.61283958364
sin(slow),h_line(fast_R),88329.87831649494
sin(slow),h_line(slow_fast_R),54532.369930221495
sin(slow),h_line(fast_slow_R),55865.59585529637
sin(slow),h_line(slow_fast_gradually_R),85867.94622602122
sin(slow),h_line(fast_slow_gradually_R),59787.898802518765
sin(slow),v_line(slow),165561.63684559736
sin(slow),v_line(normal),161478.81085240937
sin(slow),v_line(fast),210512.1400431532
sin(slow),v_line(slow_fast),130166.62279140373
sin(slow),v_line(fast_slow),132953.91686731618
sin(slow),v_line(slow_fast_gradually),204828.15336873976
sin(slow),v_line(fast_slow_gradually),141584.34954096127
sin(slow),v_line(slow_R),140536.9697335412
sin(slow),v_line(normal_R),134131.13843563426
sin(slow),v_line(fast_R),166185.980510117
sin(slow),v_line(slow_fast_R),108275.30372917271
sin(slow),v_line(fast_slow_R),112324.5427113875
sin(slow),v_line(slow_fast_gradually_R),172870.307626195
sin(slow),v_line(fast_slow_gradually_R),121385.60058840128
otknoy@debian:~/repos/leap_practice/tests$ 
otknoy commented 8 years ago

score でソートしたのも貼っておく。

before

otknoy@debian:~/repos/leap_practice/tests$ node test_distance.js
ts1_name,ts2_name,score
sin(slow),sin(slow),0
sin(slow),sin(slow_R),1.5729541337191772e-10
sin(slow),sin(normal),0.31258122521776394
sin(slow),sin(slow_fast),0.8597075329430575
sin(slow),sin(fast_slow),1.1216776589187074
sin(slow),sin(fast),1.7909762348779006
sin(slow),sin(slow_fast_gradually),3.7312241674135103
sin(slow),sin(fast_slow_gradually),11.199617546672524
sin(slow),h_line(fast),1244.921404339886
sin(slow),h_line(slow_fast_gradually),1399.1974513858072
sin(slow),h_line(normal),1468.8866200996592
sin(slow),h_line(slow),1711.8386511626293
sin(slow),h_line(slow_fast),1974.9131834603472
sin(slow),h_line(fast_slow_gradually),2371.7524510256476
sin(slow),h_line(fast_slow),2493.7717734084927
sin(slow),sin(normal_R),3188.2389386997706
sin(slow),sin(fast_R),6228.433355940993
sin(slow),sin(slow_fast_gradually_R),12869.40471770568
sin(slow),circle(fast),13458.267356019755
sin(slow),circle(normal_R),15577.328649916313
sin(slow),circle(fast_R),17231.978489311263
sin(slow),circle(normal),17856.217950844555
sin(slow),circle(slow_R),19233.600713103704
sin(slow),sin(fast_slow_R),21527.8689458634
sin(slow),circle(slow),22267.18011623445
sin(slow),circle(slow_fast_gradually_R),25058.48607819607
sin(slow),sin(fast_slow_gradually_R),27380.314440281014
sin(slow),sin(slow_fast_R),28407.061633681966
sin(slow),circle(slow_fast_gradually),28657.28287364407
sin(slow),circle(fast_slow_gradually_R),34452.094086204255
sin(slow),circle(slow_fast_R),38213.481177942944
sin(slow),circle(fast_slow_R),40009.25199743667
sin(slow),circle(fast_slow_gradually),41583.890585119014
sin(slow),h_line(slow_fast_gradually_R),43613.18211910572
sin(slow),circle(slow_fast),43845.91369691211
sin(slow),circle(fast_slow),45658.48077448982
sin(slow),h_line(normal_R),48525.62854592952
sin(slow),h_line(slow_R),48833.65524279325
sin(slow),h_line(fast_R),51430.215929887454
sin(slow),h_line(fast_slow_gradually_R),64225.830131655806
sin(slow),h_line(slow_fast_R),65151.88129529764
sin(slow),h_line(fast_slow_R),72356.57589534656
sin(slow),v_line(slow_fast_gradually_R),87802.54496412238
sin(slow),v_line(normal_R),96132.37950023352
sin(slow),v_line(fast_R),96762.05860411897
sin(slow),v_line(slow_R),98611.72621852049
sin(slow),v_line(slow_fast_gradually),104034.25199523248
sin(slow),v_line(normal),115732.57714173105
sin(slow),v_line(slow),116170.9892839083
sin(slow),v_line(fast),122571.03739562494
sin(slow),v_line(slow_fast_R),129360.59343839166
sin(slow),v_line(fast_slow_gradually_R),130395.80115652503
sin(slow),v_line(fast_slow_R),145481.6542305989
sin(slow),v_line(fast_slow_gradually),152093.8612168734
sin(slow),v_line(slow_fast),155514.97885690504
sin(slow),v_line(fast_slow),172200.61880860655
otknoy@debian:~/repos/leap_practice/tests$ 

after

otknoy@debian:~/repos/leap_practice/tests$ node test_distance.js
ts1_name,ts2_name,score
sin(slow),sin(slow),0
sin(slow),sin(slow_R),7.8748494007641e-11
sin(slow),sin(slow_fast),1.14017473308839
sin(slow),sin(fast_slow),1.3590799796365456
sin(slow),sin(normal),4.655489283926771
sin(slow),sin(fast_slow_gradually),9.357258238510948
sin(slow),sin(fast),13.634268160902206
sin(slow),sin(slow_fast_gradually),15.095233606608582
sin(slow),h_line(slow_fast),1653.0097697778083
sin(slow),h_line(fast_slow),1925.409602716487
sin(slow),h_line(normal),2049.5012774167285
sin(slow),h_line(fast),2138.115778258658
sin(slow),h_line(fast_slow_gradually),2207.8670721089743
sin(slow),h_line(slow),2439.6349798606934
sin(slow),h_line(slow_fast_gradually),2754.8141565792725
sin(slow),sin(fast_slow_gradually_R),22876.198388172605
sin(slow),sin(fast_slow_R),29268.922388492865
sin(slow),circle(fast_slow_R),30855.119781364363
sin(slow),circle(slow_fast_R),32007.757819959974
sin(slow),circle(fast_slow_gradually_R),32085.649363848086
sin(slow),circle(fast_slow),35211.8028455584
sin(slow),circle(slow_fast),36725.504815187574
sin(slow),sin(slow_fast_R),37674.4563411358
sin(slow),circle(slow_R),38598.17121395659
sin(slow),circle(fast_slow_gradually),38727.57717311089
sin(slow),circle(normal_R),39545.1964134855
sin(slow),circle(slow),44209.30104294851
sin(slow),circle(normal),45323.289105836615
sin(slow),circle(fast),47379.26783689885
sin(slow),sin(fast_R),47415.554122635804
sin(slow),sin(normal_R),47484.656838792675
sin(slow),circle(slow_fast_gradually_R),49379.9905553178
sin(slow),sin(slow_fast_gradually_R),52065.129800663686
sin(slow),h_line(slow_fast_R),54532.369930221495
sin(slow),circle(fast_R),55335.095745784565
sin(slow),h_line(fast_slow_R),55865.59585529637
sin(slow),circle(slow_fast_gradually),56471.74187721262
sin(slow),h_line(fast_slow_gradually_R),59787.898802518765
sin(slow),h_line(normal_R),67706.61283958364
sin(slow),h_line(slow_R),69595.51558428838
sin(slow),h_line(slow_fast_gradually_R),85867.94622602122
sin(slow),h_line(fast_R),88329.87831649494
sin(slow),v_line(slow_fast_R),108275.30372917271
sin(slow),v_line(fast_slow_R),112324.5427113875
sin(slow),v_line(fast_slow_gradually_R),121385.60058840128
sin(slow),v_line(slow_fast),130166.62279140373
sin(slow),v_line(fast_slow),132953.91686731618
sin(slow),v_line(normal_R),134131.13843563426
sin(slow),v_line(slow_R),140536.9697335412
sin(slow),v_line(fast_slow_gradually),141584.34954096127
sin(slow),v_line(normal),161478.81085240937
sin(slow),v_line(slow),165561.63684559736
sin(slow),v_line(fast_R),166185.980510117
sin(slow),v_line(slow_fast_gradually_R),172870.307626195
sin(slow),v_line(slow_fast_gradually),204828.15336873976
sin(slow),v_line(fast),210512.1400431532
otknoy@debian:~/repos/leap_practice/tests$