vector_distance.py 26 KB

123456789101112131415161718192021222324
  1. import math
  2. import numpy as np
  3. class VectorDistance:
  4. @staticmethod
  5. def calculate_distance(vector1, vector2):
  6. if len(vector1) != len(vector2):
  7. raise ValueError("Vectors must have the same dimensionality")
  8. squared_sum = sum((v1 - v2) ** 2 for v1, v2 in zip(vector1, vector2))
  9. return math.sqrt(squared_sum)
  10. def l2_distance(vector1, vector2):
  11. vector1 = np.array(vector1)
  12. vector2 = np.array(vector2)
  13. if vector1.shape != vector2.shape:
  14. raise ValueError("向量维度不一致")
  15. return np.sqrt(np.sum((vector1 - vector2) ** 2))
  16. if __name__ == '__main__':
  17. v1 = [0.032683108,0.057093814,-0.03531786,0.0025247626,-0.002116352,-0.018129399,-0.012545007,-0.011608211,0.014278372,-0.027003359,-0.020011228,0.027727213,-0.011305003,0.027170602,0.07453287,0.014787685,-0.0049369526,-0.035328433,-0.009882479,0.014587988,-0.014262102,0.036985807,-0.0035697601,0.01549803,-0.028156228,0.014585413,0.0025754422,-0.0113301,0.015634857,-0.02293557,0.05587496,0.021464761,0.020139301,-0.0044953967,-0.020600343,0.00631638,-0.04642515,-0.023094425,-0.012087304,0.05426503,6.1512525e-05,0.043922313,0.025156468,-0.020049507,0.033121496,-0.012615195,0.019896476,-0.061274853,0.045396805,-0.028238544,-0.04293236,0.014725067,0.009618503,-0.04115609,-0.026014712,0.0011653913,-0.076513626,-0.0135218585,-0.055433206,-0.021053715,-0.017714882,0.03206402,-0.028631,-0.010463637,0.0316644,0.061703164,0.04500525,0.0052000843,-0.044496268,-0.021449424,0.013368045,0.036023963,0.009654841,-0.007927848,-0.020024586,0.035460733,0.01846736,-0.028044157,-0.009282907,0.00889419,0.03317063,0.004073519,0.0019114227,0.009846568,-0.023303943,0.009955116,0.0021194625,-0.040562283,0.012145751,-0.052254755,0.022145344,0.0489809,-0.0090372395,-0.013131919,-0.0023532743,-0.0026606247,-0.03370847,0.030361798,0.021896258,-0.033556607,0.0103489235,0.02689863,0.002442396,-0.0179786,0.012344132,0.004235365,0.07658945,0.004565709,0.04813177,0.0034526407,-0.0149132805,0.026732039,-0.017124727,0.013672208,-0.010035669,-0.0064084893,-0.024148576,-0.019899337,-0.009819917,-0.00055625266,-0.0012053025,0.08107683,-0.010550944,-0.025723092,-0.018652486,0.0031402735,-0.0034037447,0.013551823,0.008124985,0.02521023,-0.014427651,0.043679368,-0.052677713,-0.02574435,-0.033022687,0.011719207,0.039084263,0.02466808,0.040334977,-0.033223446,0.026670495,0.009324652,-0.026834533,-0.009931155,0.02336438,-0.07205712,0.06143688,0.016235257,0.0077380864,0.0033425428,-0.017889604,-0.0048170732,0.076525785,-0.01964173,-0.015375708,0.010367165,-0.029922452,-0.010810955,-0.026712652,0.023118677,0.015485476,-0.04015285,0.0034514924,-0.028980255,0.067512535,-0.06221086,0.0015902823,0.05313103,-0.047773123,-0.032655653,0.01199199,-0.05162583,0.019506784,-0.00041930866,0.040568557,0.026290694,0.10455181,0.0014611868,0.036384463,-0.03480032,-0.02446936,-0.044194777,0.013856548,-0.04162238,0.011119207,0.039102636,-0.014081144,0.0040719947,-0.007978248,-0.009548112,-0.006183328,-0.02476226,0.037079625,0.03799258,-0.0034789965,-0.06296357,0.07331473,0.0073468834,-0.009095027,0.018620642,-0.021258397,0.03216844,0.034480147,0.015071679,-0.01646636,-0.021896238,-0.0735797,-0.035058253,-0.0060440744,0.009261307,0.026021278,-9.516646e-05,-0.017059615,-0.02359814,-0.030946054,0.026761645,0.02314877,-0.006245001,0.010832449,-0.020269899,0.01726241,-0.002247799,-0.0034753429,-0.043599635,0.04443905,-0.0420246,-0.007517272,-0.00076745596,0.034946214,0.0043702787,0.0074407365,0.035745986,0.026693223,-0.009587834,0.05363091,-0.0034415866,-0.0039776894,0.014499488,0.043208208,-0.0013997498,0.015344604,-0.042050272,-0.008289962,0.0058998577,-0.014735983,-0.025573596,-0.0049958294,0.0017727051,-0.04562404,-0.023673028,0.028389702,0.00040104642,-0.00825484,0.021233195,0.022789914,-0.02409509,0.01120691,-0.012530845,-0.00031648987,-0.021939253,0.025281686,0.06804571,0.033031188,0.017837258,0.048975855,-0.059931938,-0.028160937,-0.0069863377,0.025469983,0.008039224,-0.009747799,-0.018969813,0.0077672694,-0.014377295,-0.05010435,-0.019336045,-0.009886138,0.0114520835,0.06096744,0.024675427,-0.027994318,-0.0038153438,0.020237567,0.040838502,0.023497634,-0.030393392,-0.050219554,-0.07467332,-0.005044584,-0.0011848116,0.022830997,-0.05168978,0.06353057,0.03690794,-0.028149068,0.03741762,0.00820494,-0.1890706,-0.00084058766,0.0005761012,-0.009464664,0.015644364,0.01987493,-0.024614396,-0.033522412,-0.00575077,0.013780907,0.03057093,-0.04853941,-0.037494726,0.024242463,-0.008087158,-0.021283755,0.026124291,-0.011072592,0.045431875,-0.01990396,-0.032808866,-0.01970514,0.02048949,-0.043170102,-0.016584462,0.0069482643,0.06003209,0.021676494,-0.020618385,-0.0041152975,-0.06988334,-0.025959296,-0.022811728,0.046278823,0.027164018,-0.014821315,0.0027936725,-0.057025254,-0.02704083,-0.01107621,-0.01422921,0.06398848,-0.0070185587,0.0022509436,-0.016379435,-0.02214189,0.0011067499,-0.031409837,-0.00047029188,-0.0016135416,0.02782779,-0.06777221,-0.045002833,-0.004783935,-0.02917612,0.030467352,0.041148752,0.018521015,-0.005406558,0.009234781,0.023749402,-0.078622594,0.0022436345,-0.0025629608,-0.0045590443,-0.00544247,0.043308154,0.02115061,0.033685036,-0.053728107,0.042552005,-0.028473513,0.00087120547,0.025543053,-0.012904586,-0.015717201,-0.04553505,-0.03862067,0.019540168,-0.11022896,-0.058216844,0.004750087,0.03128079,-0.0064709447,-0.010306981,-0.025079144,-0.0021956882,-0.036355965,0.048314556,0.22739331,0.062318195,-0.023801925,-0.003156543,0.026586076,0.014893628,0.013524566,0.018042909,0.00019349487,-0.028168201,-0.0036244134,-0.012187831,-0.0032778827,0.008355023,0.009298371,0.016111659,-0.05446588,0.009873592,0.078391746,-0.012508918,-0.0074720443,-0.0022697453,0.051723707,-0.007889526,0.008319948,-0.06186731,0.0054420913,0.025879432,-0.018350553,-0.011842267,-0.023108767,-0.011004147,0.044589877,-0.030824576,-0.03071112,-0.02656604,-0.026814962,-0.0338416,-0.022022739,-0.0060024117,0.027737891,-0.02551067,-0.0024050644,-0.0057897004,-0.005575288,-0.013698602,-0.024880609,0.0021366987,0.009496,0.0069009475,-0.009458706,0.023032546,0.017257437,0.005416521,-0.022904813,-0.029683752,0.0029962528,-0.019464154,-0.018179365,-0.00076655485,0.00437171,-0.0007006298,-0.0020949142,0.012832466,-0.016482046,-0.0063817245,-0.010954449,-0.013393678,0.023667946,0.03024975,0.012604602,-0.0031244184,-0.0067999326,0.038467642,0.025216993,-0.0035508412,0.005924244,0.027961789,0.027715921,-0.0072491486,-0.026920868,-0.032698683,-0.013743351,-0.06019518,0.037584297,0.057649415,0.08096368,0.025846664,0.010932741,-0.02046362,-0.026245182,0.015141068,-0.042824615,0.018860713,-0.0022060117,0.013521969,-0.021435125,-0.053250533,-0.0150587065,0.026465558,0.0025425134,-0.019685762,0.014392023,-0.006465189,-0.0046011806,-0.038285296,-0.050299324,-0.004197582,-0.0074612387,-0.0073301215,-0.0599137,-0.021265017,0.03224687,-0.019868804,0.0013824053,0.061329715,0.013011983,0.043053303,0.054024275,0.070482746,-0.001874609,0.019423537,0.038369253,0.031232495,0.0073016323,-0.008169666,0.0188262,-0.020747498,-0.030678563,0.022916935,0.015368028,-0.041998446,-0.06596034,0.031023644,0.038034853,0.025922352,0.047836486,0.020691732,0.022479257,0.032567874,-0.022694238,-0.013149582,-0.031202015,-0.023953205,0.023891225,0.043574534,0.014793999,-0.036263444,-0.0047426457,0.02693381,0.020234738,0.00420789,0.05002436,-0.043270845,-0.03377024,-0.050420277,-0.021005772,0.026537381,0.0144566735,-0.006958758,0.009902419,-0.008492139,0.009200193,0.03570071,0.028598357,0.021938154,0.018549122,-0.0007166982,-0.0028295803,0.012010179,-0.020320479,-0.030444965,-0.023282733,-0.020120926,0.0021770915,0.007326091,-0.060514558,0.022144811,-0.016086316,0.027217055,0.0017973194,0.016962767,0.03560201,0.0057668583,-0.011337149,0.056444395,0.032598495,-0.006207629,0.03740177,-0.025670225,-0.07177094,0.10476624,-0.060034767,-0.0010278157,0.04868966,-0.009007731,0.03621055,0.05804614,0.02242019,-0.036973678,0.021715023,-0.021066599,0.024576899,0.037911,-0.017784001,0.0047415975,-0.006565345,-0.020954002,-0.05076231,0.040418956,0.022621095,-0.007981689,-0.05308527,0.0075230175,-0.0005716093,-0.06220616,-0.005662637,0.03349413,-0.0319362,-0.024123894,0.0078056525,-0.054450903,0.07743399,-0.04611667,-0.0044326074,0.032016825,0.012391304,-0.0037582421,-0.003648682,0.014761007,-0.0076892874,-0.00068171724,0.031661622,-0.057134736,-0.012645718,0.02147158,0.04688866,-0.027670043,-0.00063810515,-0.048616905,-0.0032368014,-0.016537854,-0.040432766,0.025150558,-0.017358199,0.047060844,-0.059312068,-0.013632854,-0.007166907,0.0414353,0.019386154,0.019905379,0.052880708,-0.054418758,-0.051558036,-0.02465238,-0.0016475223,-0.019810753,0.009187751,0.02173835,-0.0052338685,0.04375001,-0.00073752686,-0.026693212,-0.0036080056,-0.033492155,0.024211103,0.00826391,-0.012101146,-0.015993966,-0.021875845,-0.0083127115,-0.018540544,-0.007673311,0.012685462,-0.079138696,-0.047018867,0.05175965,-0.013705862,-0.058585867,-0.040391944,-0.037823766,0.018172769,0.025098586,0.01583037,0.027224584,0.062044755,0.008801295,0.0030170544,0.0006326438,0.0037043008,0.0037385786,-0.0188736,0.048785236,0.0064145345,0.026435005,-0.016971236,0.061757326,0.009881011,-0.004778326,0.004296977,0.011156944,-0.009426146,-0.04027779,-0.0022119707,-0.034801926,-0.018390259,-0.0561474,0.041890055,-0.003022584,0.013599471,-0.03924989,0.021063926,0.019971363,-0.025120404,0.0047700265,0.02284249,-0.02690639,0.03408089,0.00776068,0.012224126,-0.0046401457,-0.00637207,0.046259224,-0.05003258,-0.034242354,0.012425969,-0.029329026,-0.03302602,-0.038037784,-0.00886166,0.0052000154,-0.040661052,-0.02851612,0.0118927555,-0.025705459,0.011601101,-0.035969827,0.06638124,-0.031847965,0.02707221,-0.07502073,0.0028798447,0.008848641,-0.009742761,0.007175293,-0.020515032,-0.0026793114,-0.023043115,-0.0054590814,-0.038089372,0.01641134,0.027403176,-0.0049730116,-0.0003388198,0.00914993,0.017987944,-0.050129745,0.017761743,0.032873772,-0.00039431875,0.026148994,0.0074125696,-0.0003159091,-0.017739585,0.017766409,0.0045082085,0.054382704,0.06918315,0.0023411806,-0.013671082,0.069589145,-0.012136571,-0.024067832,-0.019774854,0.007953573,0.024791095,0.02202291,0.035247795,-0.045080833,-0.043807823,-0.039127752,-0.02383455,-0.012452577,0.004663302,-0.002133506,-0.07629164,0.00260757,0.029299967,-0.0057928143,-0.015773207,0.040883336,-0.021826787,0.003971169,-0.13404113,-0.017749,-0.016011871,0.019840186,-0.032052502,0.013636282,-0.004685233,-0.016953707,-0.03969093,-0.028686075,-0.010247522,0.04925351,0.021892797,-0.025490003,-0.0456975,0.017281977,0.014635155,-0.021354198,0.0013780155,0.023770826,0.026688008,0.0067219706,0.009708733,-0.018625181,-0.039480478,-0.033361975,0.02487903,-0.014394438,-0.012478697,-0.014198482,0.033926312,-0.062344592,0.013630849,0.007465757,0.0013514449,-0.0087993,0.007455559,-0.03430789,0.06444738,0.025231505,0.022834325,0.012109722,0.014553951,-0.017006712,0.00037204605,0.057681352,-0.051407326,0.0035491453,0.027686825,0.0057994425,0.014030489,0.064144425,0.056285225,0.0073196217,-0.019608956,0.0060128723,-0.046357036,-0.05062284,-0.017567072,0.025868757,0.012299851,0.021791318,0.00075343455,-0.012251915,0.020130103,0.03147423,-0.024599439,0.040855847,0.043215353,-0.007650257,-0.0546166,-0.018494405,-0.023685656,-0.02016775,-0.0035033706,-0.0030248547,0.007930953,-0.018140133,-0.03644216,-0.009994032,0.0041460935,-0.029488284,0.013764475,0.050963327,-0.013740723,0.024541456,-0.020029368,-0.011339238,0.037028745,-0.008808647,-0.024576211,-0.031803448,-0.013314867,-0.028369388,0.007534408,-0.031732466,0.016776675,-0.011398561,0.006977973,-0.009847154,-0.037349652,2.1263975e-05,0.010258467,-0.04005613,-0.022976575,0.048858203,0.008324244,0.02157148,-0.00836587,-0.004452997,0.018073466,-0.039195832,-0.04862752,0.031434547,-0.034996323,-0.01071742,-0.02311025,-0.01261588,-0.0051077185,0.020599399,-0.010743039,0.00418132,-0.013629961,-0.032453235,-0.005691781,0.0068747588,0.054499283,-0.02309182,-0.022954658,0.00994689,-0.0011629753,-0.054160126,-0.03265851,0.023949618,-0.0025481917,0.051657144,-0.02285843,0.014638862,-0.011757438,0.00985662,0.07492658,-0.01950515,0.009757582,-0.05270426,-0.007686783,-0.029022573,-0.013794056,-0.008730502,-0.008954394,-0.04405273,-0.010073398,-0.005826871,-0.016277684,0.04291888,0.011549554,-0.023245052,-0.03888919,0.0127596995,-0.014568579,0.00087370054,-0.005082517,-0.031783096,-0.0364751,-0.021974422,-0.025129605,0.0069429353,-0.0050281133,-0.017888343,-0.023844337,-0.020368857,0.014437341,0.021537986,-0.021619117,-0.044082053,0.045527477,0.007893065,0.0011278561,0.00034920181,0.04109716,0.012047895,0.024999889,0.00291526,-0.017461624,-0.0026886764,0.0022870065,0.05322342,-0.024990957,0.011843473,0.0070570414,0.0048194253,0.023107994,-0.018840168,0.024592662,-0.030040575,0.05073788,0.022920651,0.0074607357,0.0018421729,8.60136e-05,0.048735265,-0.0108254785,-0.0043674875,-0.014337119,-0.010697216,-0.0018748931,0.0024739145,-0.015135502,-0.020202614,-0.018729366,-0.012848231,-0.010871105,-0.016864253,0.022034097,-0.004908466,0.025703367,-0.05177444,0.023762241,0.028632326,0.01428499,-0.020941034,0.00785061,0.021024026,-0.012066755,0.013915156,-0.00879112,0.050035827,-0.029239666,-0.012534337,-0.05982352,-0.0030986485,-0.0148291215,0.006656253,-0.03286145,0.017389411,0.007841384,0.021177327,-0.011191715,0.024337115,0.021264445,0.017032418,0.014226104,0.0019300279,0.05728729,0.00847177]
  18. v2 = [-0.00024294354,0.049880877,-0.061942894,-0.016997617,-0.011541853,0.011723693,0.0146868,-0.009628711,0.029308388,-0.012509169,-0.015751768,0.008537869,-0.013408965,0.028595854,0.030616323,0.007816518,-0.028817106,-0.0058933576,-0.0017566701,0.00310391,-0.026527587,0.039337616,-0.003576902,0.002464883,-0.0446312,0.039786708,-0.0063988413,-0.03290004,-0.006431601,-0.012678691,0.026281616,-0.012118953,0.057055127,-0.0036226537,0.009720495,-0.0065486007,-0.05120038,-0.021964962,-0.016333682,0.061293688,0.03380606,0.003942453,0.036823995,0.021414641,0.005266478,-0.025721753,0.02454531,-0.061076358,0.06099805,-0.019893568,-0.037335835,0.0045176116,0.008108114,-0.05880649,0.007557072,-0.011245499,-0.04710147,-0.021558361,-0.020499337,-0.024262648,-0.03583984,0.05544044,-0.03758842,-0.031083133,0.032931224,0.044780035,0.02083147,0.0073987483,-0.042858675,-0.03647195,0.018849319,0.007321187,0.034303736,-0.010395445,-0.023814853,-0.0045868154,0.042728435,-0.026753396,-0.0068036304,0.010563368,0.0044164597,0.020379199,-0.004461018,-0.004456475,-0.018131947,0.013126779,-0.003408788,-0.008268842,0.008801276,-0.011038955,-0.013909011,0.051482532,-0.010215576,-0.00991417,0.0057326052,-0.011533272,-0.04430146,0.052930027,0.00723292,-0.01974876,0.031015242,0.024196642,0.00934573,-0.007871183,0.02327206,0.0077181756,0.03715583,0.024348611,0.034073632,-0.012345087,-0.010985647,0.03155376,-0.01505992,0.008576916,-0.0014156235,-0.0031952814,-0.0016769916,-0.0044142045,-0.030695971,0.0043929843,0.026961396,0.059876446,0.014950007,-0.030042073,-0.009900522,0.005801028,-0.01214897,-0.010184026,0.019211147,0.02541507,-0.022547625,0.06777639,-0.029387228,-0.017281448,0.0033776963,-0.010312965,0.031046657,0.044924244,0.0226212,-0.04043629,0.047156524,0.023447271,-0.0071866433,-0.016858742,0.019011507,-0.07285727,0.03250469,0.022101192,0.035083883,-0.0033944203,-0.02280546,0.010937467,0.063480474,-0.008686469,0.0054284493,-0.020403713,-0.027123507,-0.006464782,-0.021638941,0.026972778,0.059267655,-0.029073607,-0.00019912526,-0.020161055,0.03504412,-0.033982567,0.0093803285,0.01759699,-0.02883979,-0.035792314,0.049587995,-0.041218363,-0.0030948122,-7.3412084e-05,0.032518942,0.0069121984,0.10694602,0.004676541,0.03912223,-0.027662296,-0.01731159,-0.012810103,0.00045125218,-0.04489564,0.026134865,0.019342078,-0.02225122,-0.0050424263,0.006095056,0.005555032,-0.0045285802,-0.01577979,0.026939638,0.01679289,-0.007592788,-0.043352507,0.055745937,-0.02635417,-0.0077912407,0.0043499307,0.0014912869,0.013574593,0.017838975,0.02125923,-0.004763759,0.0061187237,-0.038756885,-0.040331,0.0005222539,-0.015790462,-0.010942564,0.007570583,-0.019871466,-0.026794923,-0.021063114,0.035250384,0.038461797,-0.017106494,0.007974804,-0.020154355,-0.005216137,0.010463956,0.00076093944,-0.046222866,0.025413943,-0.040801235,-0.018940432,0.028270273,0.029622385,-0.01888457,-0.018293645,0.04455113,0.01821568,0.0016609917,0.05431407,0.008850232,0.010780599,0.013799585,0.018645795,0.012404453,0.010450758,-0.047109716,0.024536394,0.007978387,-0.0042604846,-0.028012194,-0.015183093,0.0037160954,-0.0398926,-0.028152496,0.05054929,0.00044097338,-0.00056578574,0.011344252,0.015097465,-0.014385527,0.018206624,-0.012980758,-0.0050911414,-0.030282425,-0.0044553536,0.06927475,0.029394766,0.035394397,0.019177778,-0.054054126,-0.035166867,-0.0026929018,0.0011924756,0.0017948701,-0.025234986,-0.01819261,0.027258435,0.0040098205,-0.03674891,0.0071672443,0.009908127,0.0075429804,0.082395904,-0.0050993543,-0.02435967,0.01941221,0.03638516,0.006213941,0.023252953,-0.03477146,-0.04296054,-0.08875099,0.0034289397,0.0032896746,0.01647861,-0.038416546,0.05880472,0.016821982,-0.0360679,0.049189385,0.015032448,-0.1819441,-0.018338237,0.0038206447,0.008034406,0.009403071,0.035222102,-0.02903394,-0.03609401,0.022480285,0.015975324,0.018667473,-0.048317414,-0.007454708,0.004076353,0.0030208891,-0.0036351772,0.003473753,0.0067754914,0.04135709,-0.0094807735,-0.06551339,-0.034400646,0.024696117,-0.012260958,-0.010704241,0.017917847,0.066837005,0.01816265,-0.032115977,0.0011771398,-0.03350947,-0.040335793,-0.019129328,0.02251492,0.02330767,-0.003970337,0.009784747,-0.059327934,-0.042279374,0.0011311154,0.0037523918,0.110788904,-0.0023973226,0.055010047,-0.012251692,-0.03318383,0.004454511,-0.024118118,-0.010784096,-0.017462377,-0.0013213456,-0.030011557,-0.039121374,0.011236561,-0.045523517,-0.002593061,-0.005949609,0.006881256,0.011241998,-0.0012903643,0.01918432,-0.09745497,-0.003805791,-0.027821146,-0.0032807374,-0.02041233,0.025160166,-0.017112657,-0.0012479696,-0.04727491,0.041481752,-0.03733273,0.0059423456,0.026659515,0.017675323,-0.011210665,-0.03709663,0.0009556555,0.0059980354,-0.10794477,-0.06750132,0.0141473655,0.014516658,-0.01254827,-0.010273151,-0.033717137,0.005654901,-0.047354132,0.023886519,0.25206903,0.056210406,-0.042631716,-0.0045917085,0.04557367,0.006149254,0.027330797,0.017162368,0.0021184061,-0.022065222,0.008273881,-0.0029796346,-0.011972669,-0.0026654075,0.015697854,0.035243545,-0.060268875,-0.0025467642,0.093495145,-0.032945003,-0.004154537,-0.031691503,0.029716063,0.0013024512,-0.038413394,-0.06943138,-0.013672945,0.013179662,-0.011310593,0.00253123,-0.04505691,0.040422384,0.03952709,-0.015620001,-0.030757438,-0.030018628,0.009714,-0.025382103,-0.037799254,0.014109918,0.03697793,-0.020359559,-0.028695846,-0.00420283,-0.0024949808,-0.013136472,-0.04004578,0.03363528,0.035401847,0.011694343,-0.014820874,0.0010014086,0.00894371,-0.010569913,-0.015335121,-0.034818992,-0.00789894,-0.0205345,-0.024432344,0.061619096,-0.0015208861,0.01276416,-0.036993664,0.034006763,-0.026951088,-0.02053485,-0.00068846403,0.014676645,0.047079537,0.029918322,0.008918001,0.014001375,-0.012075919,0.025129009,0.019741205,-0.008579758,0.019333031,0.030807799,-0.016111337,-0.018118927,-0.043003958,-0.018722864,0.0016666024,-0.031782653,0.03880224,0.026407346,0.062416658,0.012663513,0.02770572,-0.018335998,-0.036012065,0.0054311724,-0.050196186,-0.02074635,-0.009493457,0.030990213,-0.031001613,-0.063722596,-0.02016242,0.046846934,0.017552903,0.005265902,0.025181381,-0.040230606,0.0044386336,-0.04544413,-0.040034447,-0.014499556,-0.013812989,-0.0046834527,-0.07192225,-0.0049320813,0.03946763,-0.02259171,0.004709836,0.046086002,0.029968876,0.033573773,0.05377639,0.06627781,-0.001976255,0.069208436,0.050989315,0.047049604,0.004472636,-0.009392582,-0.0045663547,-0.032174166,-0.022245519,0.018567014,-0.016713232,-0.03887716,-0.10083221,0.014837922,0.039493155,0.025432458,0.06077212,-0.0067124446,0.051496543,0.029146532,-0.04101492,-0.04767588,-0.039333478,0.009845912,0.023832237,0.03001579,0.02884352,-0.071003996,0.0035816748,0.036987707,0.034906875,-0.0042443792,0.065257154,-0.047361318,0.0054820366,-0.0100753335,-0.018495262,0.007915263,0.00018172008,-0.012567832,-0.0018871491,-0.006805213,-0.0059526716,0.019143054,-0.0017004943,0.02308856,-0.010096095,0.009262018,0.0155116925,-0.006354843,-0.013931453,-0.005544648,-0.03162855,-0.007079261,0.0043648523,0.004025852,-0.06721074,0.018245313,-0.0015155375,0.031407487,0.01479442,0.01804766,0.027917564,0.020535173,0.014551332,0.041972846,0.0047667106,-0.018336078,0.03709553,-0.037245132,-0.04054164,0.1152388,-0.04812408,-0.007157052,0.03712314,0.016439501,0.060864575,0.026886808,0.026363805,-0.032869272,0.020115776,-0.018245902,-0.0019058172,0.07428114,-0.0185285,-0.024815297,-0.038289364,-0.020973628,-0.026131969,-0.00024425494,0.0408348,0.025645057,-0.027655963,-0.00580636,-0.0018807617,-0.04251079,-0.007732977,0.030243302,-0.049379773,-0.0146844555,0.016243488,-0.06357155,0.08679747,-0.0486652,0.011224764,-0.00292244,0.005773387,-0.006803097,-0.021596747,0.009113674,-0.00669439,0.0076182093,0.014301218,-0.03645137,-0.0050834822,0.028074043,0.035885014,0.012135248,0.018670624,-0.039221395,-0.025382796,-0.0008436831,-0.012401902,0.013478503,-0.0014005237,0.03861957,-0.026563887,0.002610146,-0.023211261,0.03095133,0.032134745,0.005737767,0.020306252,-0.049670115,-0.013562095,-0.013320403,-0.013700053,-0.0050554075,-0.007837473,0.037574284,0.004461575,0.045877222,0.013015613,-0.003951604,-0.021087656,-0.044851717,0.011961569,0.013954852,-0.02918385,-0.031664897,-0.011084032,0.006934877,-0.022290733,-0.0026184577,-0.0022322035,-0.04900051,-0.030611027,0.05797448,0.014302862,-0.055877443,-0.021627344,-0.041724347,0.025626348,0.01084848,0.036573652,0.020092918,0.045905463,0.026666893,-0.007894712,-0.0009301251,0.0028778338,0.00011758812,-0.023376947,0.033662006,0.029054483,0.012579798,-0.023699855,0.05603662,-0.0074495045,0.016056327,-0.0157686,-0.0023291283,-0.016531004,-0.05234844,-0.010582669,-0.033694506,-0.009732363,-0.012699031,0.0111604035,-0.020881103,0.008437411,-0.07275475,0.01205016,0.026131103,-0.046519943,0.021922005,-0.012828446,-0.012243548,0.02210092,0.018006155,0.020084862,-0.0258999,-0.016090743,0.050895162,-0.05687911,-0.032926667,0.027275354,0.013473012,-0.027573658,-0.031948943,0.0019253037,0.0069931536,-0.013889919,-0.02446104,-0.005292,-0.00988256,0.0052749063,-0.025101697,0.033385124,0.009633062,0.0398052,-0.045626838,0.020539334,0.01240947,-0.015127449,-0.008063237,-0.01777477,0.0039494173,-0.017940106,0.019662358,-0.040860612,0.004762651,-0.005890973,-0.011911004,0.009747098,0.0006299117,0.017984185,-0.020244246,0.01428621,0.031031538,-0.011239413,0.041052397,-0.002873661,-0.0016310324,-0.02408897,0.015205711,0.0025152033,0.026329534,0.034630332,-0.0033186548,-0.0052473517,0.09447854,-0.040294737,-0.016890688,-0.04036084,0.013187891,0.0056431917,-0.0018429502,0.01898968,-0.0154096475,-0.051877283,-0.026067862,-0.022125263,-0.00055829936,0.02360174,0.017845884,-0.056187067,0.012776579,-0.0031518,0.0044432525,-0.019458951,0.039295178,0.01288626,0.0014203314,-0.13823608,-0.042011615,-0.007185778,0.0015346478,-0.03711042,-0.021905856,0.0037117165,-0.021958614,-0.042976037,-0.029787019,0.009679481,0.05388039,0.0059472234,-0.027324216,-0.011601168,0.0039105634,0.020127889,-0.010936018,0.027117735,0.027873678,0.022518028,-0.008323667,0.016532695,0.005741561,-0.018906279,-0.0077219172,0.019794123,0.0008842575,-0.011708694,-0.0004364232,0.009429027,-0.07515981,0.017854268,0.03306065,0.023321658,-0.030494101,-0.005168994,-0.039148916,0.07531388,0.021684673,-0.009614422,0.013383405,0.0034490635,-0.023773067,-0.016102672,0.060876742,-0.046029694,-0.01593959,0.026393455,0.014118816,0.026836567,0.07153876,0.023755698,-0.00461365,-0.022692092,0.0069235032,-0.056721926,-0.04654485,-0.017389106,0.02852802,-0.016565066,-0.009378649,-0.0049197185,-0.018744392,0.016596938,0.041777644,-0.05550888,0.03902441,0.03196273,-0.033823684,-0.04281441,-0.0052530435,-0.021507835,-0.011982378,-0.010110793,-0.018629298,0.014528558,-0.03832448,-0.025602933,0.006402934,0.01759168,-0.023917438,0.021642001,0.04145051,-0.009772948,0.014791824,-0.014475123,-0.010745235,0.016310835,-0.03753072,-0.016174532,-0.04073933,0.0025730357,-0.039563306,0.018070623,-0.006531036,0.010169378,-0.027559131,0.006253249,-0.016281303,-0.032628674,-0.019006774,0.0026062268,-0.038657986,-0.03932232,0.024249146,0.021810181,0.019310653,-0.027006572,0.001613485,-0.016437385,-0.017168714,-0.060071673,0.02812353,-0.07667916,-0.022565747,0.013533659,-0.03149755,-0.017581623,0.022475185,0.0018319085,0.011157487,-0.024447778,-0.03595636,0.021731412,0.0013892035,0.03432288,-0.014664878,-0.0062598977,0.004287477,-0.0048317267,-0.043148667,-0.022809759,0.03160579,-0.0057637175,0.023642229,-0.012187334,0.012780742,-0.013091629,0.0029184842,0.040807247,-0.0035173388,-0.008665812,-0.045019474,-0.029829979,-0.025430258,0.034720212,0.020488156,0.012019905,-0.033943873,0.009033047,-0.03108167,-0.016207041,0.06182198,0.010418399,-0.007293557,0.006993764,0.0030615618,-0.00854006,0.036652334,0.011256721,-0.03237016,-0.034753643,-0.02096941,-0.029170781,0.00022456587,0.0052406234,-0.020387081,-0.05429561,0.007879404,0.02761802,0.009067693,-0.010510168,-0.048142448,0.060430236,-0.01140214,-0.0019379606,-0.014191808,0.03342188,0.0032271661,0.037931446,-0.0012348345,-0.029911706,0.007818588,0.012234449,0.028114947,-0.0066931285,0.01720442,0.0077770767,-0.013179738,0.024346448,-0.0040961765,0.027161816,-0.038195726,0.080031306,0.03576913,-0.011391253,-0.031734303,-0.0015971519,0.06655887,-0.0055459207,-0.0025442506,-0.018660396,-0.010604525,-0.0029729959,-0.007212218,0.0013610779,-0.06472964,0.0005026445,-0.03311671,0.0023251383,-0.015519117,0.017244998,0.019188259,0.015459177,-0.04429389,0.02914308,0.055138502,0.012665855,-0.019590102,0.04635089,0.035143718,0.002500676,-0.004564448,0.006262712,0.04794873,-0.042257782,-0.028011637,-0.030024678,0.0038141331,-0.037383344,0.0073311515,-0.021219607,0.0039009193,-0.0025527768,-0.004301488,-0.04871355,-0.0020333587,0.003610275,0.040748198,-0.01712282,0.020596514,0.018395757,-0.0028322963]
  19. print(VectorDistance.calculate_distance(v1, v2))