/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/clustering/ |
D | KMeansPlusPlusClusterer.java | 121 newCenter = cluster.getCenter().centroidOf(cluster.getPoints()); in cluster() 122 if (!newCenter.equals(cluster.getCenter())) { in cluster() 179 final double d = p.distanceFrom(nearest.getCenter()); in chooseInitialCenters() 214 final T center = cluster.getCenter(); in getPointFromLargestVarianceCluster() 289 final T center = cluster.getCenter(); in getFarthestPoint() 324 final double distance = point.distanceFrom(c.getCenter()); in getNearestCluster()
|
D | Cluster.java | 70 public T getCenter() { in getCenter() method in Cluster
|
/external/s2-geometry-library-java/src/com/google/common/geometry/ |
D | S2LatLngRect.java | 218 public S2LatLng getCenter() { in getCenter() method in S2LatLngRect 219 return S2LatLng.fromRadians(lat.getCenter(), lng.getCenter()); in getCenter() 240 S1Interval interval = new S1Interval(a.lng().hi(), a.lng().complement().getCenter()); in getDistance() 392 if (contains(cell.getCenter())) { in intersects() 395 if (cell.contains(getCenter().toPoint())) { in intersects() 617 S2Cap midCap = S2Cap.fromAxisAngle(getCenter().toPoint(), S1Angle in getCapBound()
|
D | R1Interval.java | 83 public double getCenter() { in getCenter() method in R1Interval
|
D | S1Interval.java | 155 public double getCenter() { in getCenter() method in S1Interval
|
D | S2Cell.java | 167 public S2Point getCenter() { in getCenter() method in S2Cell
|
/external/s2-geometry-library-java/tests/com/google/common/geometry/ |
D | S1IntervalTest.java | 86 assertEquals(quad12.getCenter(), S2.M_PI_2); in testBasic() 88 assertDoubleNear(new S1Interval(3.1, 2.9).getCenter(), 3.0 - S2.M_PI); in testBasic() 89 assertDoubleNear(new S1Interval(-2.9, -3.1).getCenter(), S2.M_PI - 3.0); in testBasic() 90 assertDoubleNear(new S1Interval(2.1, -2.1).getCenter(), S2.M_PI); in testBasic() 91 assertEquals(pi.getCenter(), S2.M_PI); in testBasic() 93 assertEquals(mipi.getCenter(), S2.M_PI); in testBasic() 95 assertEquals(Math.abs(quad23.getCenter()), S2.M_PI); in testBasic() 98 assertDoubleNear(quad123.getCenter(), 0.75 * S2.M_PI); in testBasic()
|
D | R1IntervalTest.java | 54 assertEquals(unit.getCenter(), 0.5); in testBasic() 55 assertEquals(half.getCenter(), 0.5); in testBasic()
|
D | S2CapTest.java | 208 assertEquals(covering.contains(edgeCell), center.dotProd(edgeCell.getCenter()) > 0.1); in testCells() 212 covering.mayIntersect(cornerCell), center.dotProd(cornerCell.getCenter()) > 0); in testCells() 219 assertEquals(bulging.mayIntersect(edgeCell), center.dotProd(edgeCell.getCenter()) > 0.1); in testCells()
|
D | S2CellTest.java | 185 assertTrue(children[i].getCenter().aequal(childId.toPoint(), 1e-15)); in testSubdivide() 218 assertTrue(childCap.contains(children[i].getCenter())); in testSubdivide() 220 assertTrue(parentCap.contains(children[i].getCenter())); in testSubdivide()
|
D | S2LoopTest.java | 214 points.add(cell.getCenter()); in testContains()
|
D | S2LatLngRectTest.java | 108 assertEquals(r1.getCenter(), S2LatLng.fromRadians(S2.M_PI_4, -S2.M_PI_2)); in testBasic()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | SphereCollisionVolume.java | 63 public Vector2 getCenter() { in getCenter() method in SphereCollisionVolume 100 offsetByCenter(mWorkspaceVector2, sphereOther.getCenter(), otherFlip); in intersects()
|
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/ |
D | ImageViewState.java | 32 public PointF getCenter() { in getCenter() method in ImageViewState
|
D | SubsamplingScaleImageView.java | 613 PointF sCenter = getCenter(); in onSizeChanged() 1116 PointF center = getCenter(); in onDraw() 1923 …if (state != null && state.getCenter() != null && VALID_ORIENTATIONS.contains(state.getOrientation… in restoreState() 1926 this.sPendingCenter = state.getCenter(); in restoreState() 2534 public final PointF getCenter() { in getCenter() method 2658 return new ImageViewState(getScale(), getCenter(), getOrientation()); in getState() 2860 onStateChangedListener.onCenterChanged(getCenter(), origin); in sendStateChanged() 2930 this.targetSCenter = getCenter(); in AnimationBuilder() 3029 anim.sCenterStart = getCenter(); in start()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
D | Example2_24Test.java | 115 map.put("center", circle.getCenter()); in representData() 187 public Map<String, Integer> getCenter() { in getCenter() method in Example2_24Test.Circle
|