Home
last modified time | relevance | path

Searched refs:vector2 (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/java/android/gesture/
DGestureUtils.java407 static float squaredEuclideanDistance(float[] vector1, float[] vector2) { in squaredEuclideanDistance() argument
411 float difference = vector1[i] - vector2[i]; in squaredEuclideanDistance()
424 static float cosineDistance(float[] vector1, float[] vector2) { in cosineDistance() argument
428 sum += vector1[i] * vector2[i]; in cosineDistance()
441 static float minimumCosineDistance(float[] vector1, float[] vector2, int numOrientations) { in minimumCosineDistance() argument
446 a += vector1[i] * vector2[i] + vector1[i + 1] * vector2[i + 1]; in minimumCosineDistance()
447 b += vector1[i] * vector2[i + 1] - vector1[i + 1] * vector2[i]; in minimumCosineDistance()