Home
last modified time | relevance | path

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

/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/clustering/
DKMeansPlusPlusClusterer.java121 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()
DCluster.java70 public T getCenter() { in getCenter() method in Cluster
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2LatLngRect.java218 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()
DR1Interval.java83 public double getCenter() { in getCenter() method in R1Interval
DS1Interval.java155 public double getCenter() { in getCenter() method in S1Interval
DS2Cell.java167 public S2Point getCenter() { in getCenter() method in S2Cell
/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS1IntervalTest.java86 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()
DR1IntervalTest.java54 assertEquals(unit.getCenter(), 0.5); in testBasic()
55 assertEquals(half.getCenter(), 0.5); in testBasic()
DS2CapTest.java208 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()
DS2CellTest.java185 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()
DS2LoopTest.java214 points.add(cell.getCenter()); in testContains()
DS2LatLngRectTest.java108 assertEquals(r1.getCenter(), S2LatLng.fromRadians(S2.M_PI_4, -S2.M_PI_2)); in testBasic()
/external/replicaisland/src/com/replica/replicaisland/
DSphereCollisionVolume.java63 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/
DImageViewState.java32 public PointF getCenter() { in getCenter() method in ImageViewState
DSubsamplingScaleImageView.java613 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/
DExample2_24Test.java115 map.put("center", circle.getCenter()); in representData()
187 public Map<String, Integer> getCenter() { in getCenter() method in Example2_24Test.Circle