Esempio n. 1
0
def assertVectorEquals(v1, v2, tol_angle, tol_length):
    import utils.Geometry as Geometry
    import math
    cosineSim = Geometry.cosine_similarity(v1, v2)
    cosTol = math.cos(tol_angle)
    return cosineSim >= cosTol
Esempio n. 2
0
def assertVectorEquals(v1, v2, tol_angle, tol_length):
    import utils.Geometry as Geometry
    import math
    cosineSim = Geometry.cosine_similarity(v1, v2);
    cosTol = math.cos(tol_angle);
    return cosineSim >= cosTol