HomeSort by relevance Sort by last modified time
    Searched refs:centroid (Results 1 - 25 of 64) sorted by null

1 2 3

  /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/swiftshader/src/Shader/
PixelShader.hpp 53 bool centroid; member in class:sw::PixelShader
Shader.hpp 448 DestinationParameter() : mask(0xF), integer(false), saturate(false), partialPrecision(false), centroid(false), shift(0)
459 bool centroid : 1; member in struct:sw::Shader::DestinationParameter
575 Semantic(unsigned char usage = 0xFF, unsigned char index = 0xFF) : usage(usage), index(index), centroid(false)
591 bool centroid; member in struct:sw::Shader::Semantic
PixelShader.cpp 28 centroid = false;
53 centroid = false;
123 return centroid;
711 bool centroid = instruction[i]->dst.centroid; local
717 semantic[reg][0].centroid = centroid;
720 semantic[2 + reg][0].centroid = centroid;
726 this->centroid = this->centroid || centroid
    [all...]
  /external/libldac/src/
sigana_ldac.c 73 Calculate Pseudo Spectrum Centroid
80 SCALAR centroid; local
90 centroid = _scalar(0.0);
93 centroid = s1 / s2;
96 return centroid;
134 SCALAR low_energy, centroid; local
142 centroid = calc_spectral_centroid_ldac(a_psd_spec, LDAC_NSP_PSEUDOANA);
159 if ((centroid > LDAC_TH_CENTROID) && (zero_cross >= LDAC_TH_ZCROSNUM)) {
sigana_fixp_ldac.c 253 Calculate Pseudo Spectrum Centroid
260 INT32 centroid = 0; local
270 centroid = (INT32)((s1<<15) / s2); /* Q15 <- (Q15<<15) / Q15 */
273 return centroid;
319 INT32 low_energy, centroid; local
328 centroid = calc_spectral_centroid_ldac(a_psd_spec, LDAC_NSP_PSEUDOANA);
345 if ((centroid > LDAC_TH_CENTROID) && (zero_cross >= LDAC_TH_ZCROSNUM)) {
  /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.
437 // When centroid is covered by all circles from outline, then we consider
497 // Compute the umbra by the intersection from the outline's centroid!
511 // Connect a line b/t the outline vertex (V) and the centroid (C), it will
516 // When all of the outline circles cover the the outline centroid, (like I is
518 // a small area around the centroid as the umbra, and tune down the spot
569 // Umbra can be represented as a fan from the centroid, but visually umbra
779 const Vector2& centroid, Vector2* polyToCentroid) {
781 polyToCentroid[j] = poly2d[j] - centroid;
    [all...]
SpotShadow.h 61 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 237 // map the centroid of the caster into 3d
238 Vector2 centroid = ShadowTessellator::centroid2d( local
241 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
  /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/swiftshader/src/Renderer/
PixelProcessor.hpp 84 bool centroid : 1; member in struct:sw::PixelProcessor::States
96 bool centroid : 1; member in struct:sw::PixelProcessor::States::Interpolant

Completed in 1484 milliseconds

1 2 3