Searched refs:totalDistance (Results 1 – 5 of 5) sorted by relevance
230 float totalDistance = 0; in kMeans() local248 totalDistance = 0; in kMeans()272 totalDistance += bestDistance; in kMeans()283 if (totalDistance == 0 || (Math.abs(lastDistance - totalDistance) in kMeans()284 / totalDistance) < STOP_CHANGE_RATIO) { in kMeans()287 lastDistance = totalDistance; in kMeans()300 float score = totalDistance * (float) Math.sqrt(realK); in kMeans()
651 double totalDistance = 0.0; in fling() local655 totalDistance = getSplineFlingDistance(velocity); in fling()658 mSplineDistance = (int) (totalDistance * Math.signum(velocity)); in fling()724 final double totalDistance = getSplineFlingDistance(velocity); in startAfterEdge() local725 if (totalDistance > Math.abs(overDistance)) { in startAfterEdge()
762 double totalDistance = 0.0; in fling() local766 totalDistance = getSplineFlingDistance(velocity); in fling()769 mSplineDistance = (int) (totalDistance * Math.signum(velocity)); in fling()833 final double totalDistance = getSplineFlingDistance(velocity); in startAfterEdge() local834 if (totalDistance > Math.abs(overDistance)) { in startAfterEdge()
403 int totalDistance = in fling() local411 mFinalX = startX + Math.round(totalDistance * coeffX); in fling()416 mFinalY = startY + Math.round(totalDistance * coeffY); in fling()
986 final int totalDistance; in getScrollProgress() local994 totalDistance = v.getMeasuredWidth() + mPageSpacing; in getScrollProgress()996 totalDistance = Math.abs(getScrollForPage(adjacentPage) - getScrollForPage(page)); in getScrollProgress()999 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress()