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

1 2 3 4

  /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/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/swiftshader/src/Shader/
PixelShader.hpp 59 bool centroid; member in class:sw::PixelShader
Shader.hpp 456 DestinationParameter() : mask(0xF), integer(false), saturate(false), partialPrecision(false), centroid(false), shift(0)
467 bool centroid : 1; member in struct:sw::Shader::DestinationParameter
583 Semantic(unsigned char usage = 0xFF, unsigned char index = 0xFF, bool flat = false) : usage(usage), index(index), centroid(false), flat(flat)
599 bool centroid; member in struct:sw::Shader::Semantic
PixelShader.cpp 28 centroid = false;
53 centroid = false;
123 return centroid;
723 bool centroid = instruction[i]->dst.centroid; local
729 input[reg][0].centroid = centroid;
732 input[2 + reg][0].centroid = centroid;
738 this->centroid = this->centroid || centroid
    [all...]
  /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/core/java/com/android/internal/graphics/palette/
VariationalKMeansQuantizer.java 118 float[] centroid = mean.getCentroid(); local
120 centroid[0] * 360f,
121 centroid[1],
122 centroid[2]
  /external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
backend.h 316 // Centroid behaves exactly as follows :
380 // set the centroid position based on results from above
381 psContext.vX.centroid = _simd_blendv_ps(vXSample, psContext.vX.center, _simd_castsi_ps(vEvalAtCenter));
382 psContext.vY.centroid = _simd_blendv_ps(vYSample, psContext.vY.center, _simd_castsi_ps(vEvalAtCenter));
396 psContext.vX.centroid = _simd_blendv_ps(psContext.vX.centroid, vXSample, _simd_castsi_ps(vCase3a));
397 psContext.vY.centroid = _simd_blendv_ps(psContext.vY.centroid, vYSample, _simd_castsi_ps(vCase3a));
404 psContext.vI.centroid = vplaneps(coeffs.vIa, coeffs.vIb, coeffs.vIc, psContext.vX.centroid, psContext.vY.centroid)
    [all...]
  /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.
  /external/mesa3d/src/gallium/drivers/ilo/shader/
toy_tgsi.h 74 unsigned centroid:1; member in struct:toy_tgsi::__anon27738
ilo_shader_internal.h 104 bool centroid[PIPE_MAX_SHADER_INPUTS]; member in struct:ilo_shader::__anon27725
  /external/mesa3d/src/compiler/glsl/
lower_named_interface_blocks.cpp 191 new_var->data.centroid = iface_t->fields.structure[i].centroid;
  /frameworks/base/core/java/com/android/internal/ml/clustering/
KMeans.java 61 * @return An array of k Means, each representing a centroid and data points that belong to it.
162 // Compute the new mean centroid:
168 // Update each centroid component
177 // We converged if the centroid didn't move for any of the means.
215 * Definition of a mean, contains a centroid and points on its cluster.
225 public Mean(float ...centroid) {
226 mCentroid = centroid;
239 return "Mean(centroid: " + Arrays.toString(mCentroid) + ", size: "
  /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/gallium/drivers/nouveau/codegen/
nv50_ir_driver.h 46 unsigned centroid : 1; member in struct:nv50_ir_varying

Completed in 775 milliseconds

1 2 3 4