Home
last modified time | relevance | path

Searched refs:Mean (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/tests/Internal/src/com/android/internal/ml/clustering/
DKMeansTest.java95 KMeans.Mean meanA = new KMeans.Mean(0, 1); in nearestMeanTest()
96 KMeans.Mean meanB = new KMeans.Mean(1, 1); in nearestMeanTest()
97 List<KMeans.Mean> means = Arrays.asList(meanA, meanB); in nearestMeanTest()
99 KMeans.Mean nearest = mKMeans.nearestMean(new float[] {1, 1}, means); in nearestMeanTest()
107 List<KMeans.Mean> closeMeans = Arrays.asList(new KMeans.Mean(0, 0.1f, 0.1f), in scoreTest()
108 new KMeans.Mean(0, 0.1f, 0.15f), in scoreTest()
109 new KMeans.Mean(0.1f, 0.2f, 0.1f)); in scoreTest()
110 List<KMeans.Mean> farMeans = Arrays.asList(new KMeans.Mean(0, 0, 0), in scoreTest()
111 new KMeans.Mean(0, 0.5f, 0.5f), in scoreTest()
112 new KMeans.Mean(1, 0.9f, 0.9f)); in scoreTest()
[all …]
/frameworks/base/core/java/com/android/internal/ml/clustering/
DKMeans.java63 public List<Mean> predict(final int k, final float[][] inputData) { in predict()
67 final ArrayList<Mean> means = new ArrayList<>(); in predict()
69 Mean m = new Mean(dimension); in predict()
97 public static double score(@NonNull List<Mean> means) { in score()
101 Mean mean = means.get(i); in score()
103 Mean compareTo = means.get(j); in score()
140 private boolean step(final ArrayList<Mean> means, final float[][] inputData) { in step()
145 final Mean mean = means.get(i); in step()
150 final Mean nearest = nearestMean(current, means); in step()
157 final Mean mean = means.get(i); in step()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/palette/
DVariationalKMeansQuantizer.java89 final List<KMeans.Mean> optimalMeans = getOptimalKMeans(maxColors, hslPixels); in quantize()
94 KMeans.Mean current = optimalMeans.get(i); in quantize()
97 KMeans.Mean compareTo = optimalMeans.get(j); in quantize()
114 for (KMeans.Mean mean : optimalMeans) { in quantize()
127 private List<KMeans.Mean> getOptimalKMeans(int k, float[][] inputData) { in getOptimalKMeans()
128 List<KMeans.Mean> optimal = null; in getOptimalKMeans()
135 List<KMeans.Mean> means = mKMeans.predict(k, inputData); in getOptimalKMeans()
/frameworks/base/proto/src/
Dgnss.proto22 // Mean time to first fix (in seconds)
31 // Mean position accuracy (in meters)
40 // Mean of top 4 average CN0 (dB-Hz)
67 // Mean of l5 top 4 average CN0 (dB-Hz)
/frameworks/base/media/mca/filterfw/native/core/
Dstatistics.h31 float Mean() const { return mean_; } in Mean() function
/frameworks/ml/nn/common/operations/
DSimpleMath.cpp65 tflite::reference_ops::Mean<T, U>( in meanGeneric()