/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/clustering/ |
EuclideanIntegerPoint.java | 62 int[] centroid = new int[getPoint().length]; local 64 for (int i = 0; i < centroid.length; i++) { 65 centroid[i] += p.getPoint()[i]; 68 for (int i = 0; i < centroid.length; i++) { 69 centroid[i] /= points.size(); 71 return new EuclideanIntegerPoint(centroid);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/direct/ |
NelderMead.java | 88 // compute the centroid of the best vertices 90 final double[] centroid = new double[n]; local 94 centroid[j] += x[j]; 99 centroid[j] *= scaling; 105 xR[j] = centroid[j] + rho * (centroid[j] - xWorst[j]); 120 xE[j] = centroid[j] + khi * (xR[j] - centroid[j]); 139 xC[j] = centroid[j] + gamma * (xR[j] - centroid[j]) [all...] |
/external/ImageMagick/MagickCore/ |
vision.h | 37 centroid; member in struct:_CCObjectInfo
|
vision.c | 404 object[id].centroid.x+=x; 405 object[id].centroid.y+=y; 445 object[i].centroid.x=object[i].centroid.x/object[i].area; 446 object[i].centroid.y=object[i].centroid.y/object[i].area; 628 object[i].centroid.x=0; 629 object[i].centroid.y=0; 664 object[id].centroid.x+=x; 665 object[id].centroid.y+=y [all...] |
statistic.c | 1497 centroid[MaxPixelChannels+1]; local [all...] |
statistic.h | 55 centroid, member in struct:_ChannelMoments
|
/external/mesa3d/src/gallium/drivers/r600/ |
r600_shader.h | 35 boolean centroid; member in struct:r600_shader_io
|
/external/libgdx/gdx/src/com/badlogic/gdx/math/ |
GeometryUtils.java | 105 static public Vector2 triangleCentroid (float x1, float y1, float x2, float y2, float x3, float y3, Vector2 centroid) {
106 centroid.x = (x1 + x2 + x3) / 3;
107 centroid.y = (y1 + y2 + y3) / 3;
108 return centroid;
130 Vector2 centroid) {
135 centroid.x = avgX1 - (avgX1 - avgX2) / 2;
136 centroid.y = avgY1 - (avgY1 - avgY2) / 2;
137 return centroid;
140 /** Returns the centroid for the specified non-self-intersecting polygon. */
141 static public Vector2 polygonCentroid (float[] polygon, int offset, int count, Vector2 centroid) {
[all...] |
DelaunayTriangulator.java | 39 private final Vector2 centroid = new Vector2();
field in class:DelaunayTriangulator 335 /** Removes all triangles with a centroid outside the specified hull, which may be concave. Note some triangulations may have
336 * triangles whose centroid is inside the hull but a portion is outside. */
344 centroid);
345 if (!Intersector.isPointInPolygon(hull, offset, count, centroid.x, centroid.y)) {
|
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/ |
btCompoundFromGimpact.h | 52 btVector3 centroid = (v0+v1+v2)/3; local 55 btVector3 rayFrom = centroid; 56 btVector3 rayTo = centroid-normal*m_depth; 66 //gDebugDraw.drawLine(tr(centroid),tr(centroid+normal),btVector3(1,0,0));
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
radeonsi_shader.h | 37 bool centroid; member in struct:si_shader_io
|
/external/libvorbis/vq/ |
vqgen.h | 30 int centroid; member in struct:vqgen 72 float *(*weight)(vqgen *,float *),int centroid);
|
vqgen.c | 242 float *(*weight)(vqgen *,float *),int centroid){ 245 v->centroid=centroid; 502 if(v->centroid==0){ 514 /* centroid */ 540 if(v->centroid==0){
|
/frameworks/base/libs/hwui/ |
ShadowTessellator.cpp | 118 * Calculate the centroid of a 2d polygon. 122 * @return the centroid of the polygon. 141 Vector2 centroid = poly[0]; local 143 centroid = (Vector2){static_cast<float>(sumx / (3 * area)), 146 ALOGW("Area is 0 while computing centroid!"); 148 return centroid;
|
SpotShadow.cpp | 21 // centroid * (1 - FAKE_UMBRA_SIZE_RATIO) + outline * FAKE_UMBRA_SIZE_RATIO 85 // The angle to the vertex from the centroid. 452 // When centroid is covered by all circles from outline, then we consider 512 // Compute the umbra by the intersection from the outline's centroid! 526 // Connect a line b/t the outline vertex (V) and the centroid (C), it will 531 // When all of the outline circles cover the the outline centroid, (like I is 533 // a small area around the centroid as the umbra, and tune down the spot 584 // Umbra can be represented as a fan from the centroid, but visually umbra 794 const Vector2& centroid, Vector2* polyToCentroid) { 796 polyToCentroid[j] = poly2d[j] - centroid; [all...] |
SpotShadow.h | 62 const Vector3* poly, int polyLength, VertexBuffer& retstrips, const Vector2& centroid);
|
AmbientShadow.cpp | 83 const Vector3& secondVertex, const Vector3& centroid) { 84 Vector2 secondSpike = {secondVertex.x - centroid.x, secondVertex.y - centroid.y}; 111 // Add the centroid if occluder is translucent. 131 * @param centroid3d The centroid of the shadow caster. 140 * For now let's mark the outer vertex as Pi, the inner as Vi, the centroid as C. 295 // Add the centroid as the last one in the vertex buffer.
|
TessellationCache.cpp | 238 // map the centroid of the caster into 3d 239 Vector2 centroid = ShadowTessellator::centroid2d( local 242 Vector3 centroid3d = {centroid.x, centroid.y, 0};
|
/external/mesa3d/src/gallium/drivers/nv50/codegen/ |
nv50_ir_driver.h | 46 unsigned centroid : 1; member in struct:nv50_ir_varying
|
/external/opencv3/modules/imgproc/src/ |
phasecorr.cpp | 421 Point2d centroid; local 453 centroid.x += (double)x*dataIn[x]; 454 centroid.y += (double)y*dataIn[x]; 469 centroid.x += (double)x*dataIn[x]; 470 centroid.y += (double)y*dataIn[x]; 483 centroid.x /= sumIntensity; 484 centroid.y /= sumIntensity; 486 return centroid;
|
connectedcomponents.cpp | 111 double *centroid = ¢roidsv.at<double>(l, 0); local 113 centroid[0] = double(integral.x) / area; 114 centroid[1] = double(integral.y) / area;
|
/frameworks/base/core/java/android/gesture/ |
GestureUtils.java | 325 * Calculates the centroid of a set of points. 328 * @return the centroid 499 private static OrientedBoundingBox computeOrientedBoundingBox(float[] points, float[] centroid) { 500 translate(points, -centroid[0], -centroid[1]); 534 return new OrientedBoundingBox((float) (angle * 180 / Math.PI), centroid[0], centroid[1], maxx - minx, maxy - miny);
|
/external/mesa3d/src/glsl/ |
ir_set_program_inouts.cpp | 94 if (var->centroid)
|
ir_clone.cpp | 52 var->centroid = this->centroid;
|
/external/ImageMagick/coders/ |
dds.c | 1435 centroid; local [all...] |