Searched defs:vector (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/core/java/android/gesture/
H A DInstanceLearner.java44 ArrayList<Prediction> classify(int sequenceType, int orientationType, float[] vector) { argument
51 if (sample.vector.length != vector.length) {
56 distance = GestureUtils.minimumCosineDistance(sample.vector, vector, orientationType);
58 distance = GestureUtils.squaredEuclideanDistance(sample.vector, vector);
H A DLearner.java83 abstract ArrayList<Prediction> classify(int sequenceType, int orientationType, float[] vector); argument
H A DInstance.java35 // the feature vector
36 final float[] vector; field in class:Instance
46 vector = sample;
51 float[] sample = vector;
/frameworks/native/libs/utils/tests/
H A DVector_test.cpp40 Vector<int> vector; local
42 vector.setCapacity(8);
44 vector.add(1);
45 vector.add(2);
46 vector.add(3);
48 EXPECT_EQ(vector.size(), 3);
50 // copy the vector
51 other = vector;
55 // add an element to the first vector
56 vector
[all...]
/frameworks/base/libs/hwui/
H A DSkiaColorFilter.cpp37 SkiaColorMatrixFilter::SkiaColorMatrixFilter(SkColorFilter* skFilter, float* matrix, float* vector): argument
38 SkiaColorFilter(skFilter, kColorMatrix, true), mMatrix(matrix), mVector(vector) {
39 // Skia uses the range [0..255] for the addition vector, but we need
40 // the [0..1] range to apply the vector in GLSL
/frameworks/base/libs/hwui/utils/
H A DSortedListImpl.cpp84 ssize_t SortedListImpl::merge(const VectorImpl& vector) { argument
86 if (!vector.isEmpty()) {
87 const void* buffer = vector.arrayImpl();
89 size_t s = vector.size();
100 ssize_t SortedListImpl::merge(const SortedListImpl& vector) { argument
101 // we've merging a sorted vector... nice!
103 if (!vector.isEmpty()) {
105 if (do_compare(vector.itemLocation(vector.size() - 1), arrayImpl()) <= 0) {
106 err = VectorImpl::insertVectorAt(static_cast<const VectorImpl&> (vector),
[all...]
/frameworks/ml/bordeaux/learning/multiclass_pa/native/
H A Dmulticlass_pa.cpp24 using std::vector;
68 float MulticlassPA::Score(const vector<float>& inputs,
69 const vector<float>& parameters) const {
78 float MulticlassPA::SparseScore(const vector<pair<int, float> >& inputs, argument
79 const vector<float>& parameters) const {
89 float MulticlassPA::L2NormSquare(const vector<float>& inputs) const {
98 const vector<pair<int, float> >& inputs) const {
106 float MulticlassPA::TrainOneExample(const vector<float>& inputs, int target) {
139 const vector<pair<int, float> >& inputs, int target) {
171 float MulticlassPA::Train(const vector<pai argument
97 SparseL2NormSquare( const vector<pair<int, float> >& inputs) const argument
138 SparseTrainOneExample( const vector<pair<int, float> >& inputs, int target) argument
183 SparseTrain( const vector<pair<vector<pair<int, float> >, int> >& data, int num_iterations) argument
210 SparseGetClass(const vector<pair<int, float> >& inputs) argument
224 Test(const vector<pair<vector<float>, int> >& data) argument
236 SparseTest( const vector<pair<vector<pair<int, float> >, int> >& data) argument
[all...]
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
H A Dsparse_weight_vector.h18 // Maintains the sparse vector as a list of (name, value) pairs alongwith
59 // true if the checks succeed and false otherwise. A vector is deemed invalid
114 // Load another weight vectors. Will overwrite the current vector.
159 // Convert this vector to a string, simply for debugging.
191 const SparseWeightVector<Key, Hash> &vector) {
192 typename SparseWeightVector<Key, Hash>::Wmap w_map = vector.GetMap();
190 operator <<(std::ostream &stream, const SparseWeightVector<Key, Hash> &vector) argument
/frameworks/native/include/android/
H A Dsensor.h118 ASensorVector vector; member in union:ASensorEvent::__anon1342
/frameworks/native/include/utils/
H A DSortedVector.h55 * empty the vector
61 * vector stats
64 //! returns number of items in the vector
66 //! returns whether or not the vector is empty
99 //! stack-usage of the vector. returns the top of the stack (last element)
114 //! merges a vector into this one
115 ssize_t merge(const Vector<TYPE>& vector);
116 ssize_t merge(const SortedVector<TYPE>& vector);
221 ssize_t SortedVector<TYPE>::merge(const Vector<TYPE>& vector) { argument
222 return SortedVectorImpl::merge(reinterpret_cast<const VectorImpl&>(vector));
226 merge(const SortedVector<TYPE>& vector) argument
[all...]
H A DVector.h37 * The main templated vector class ensuring type safety
65 * empty the vector
71 * vector stats
74 //! returns number of items in the vector
76 //! returns whether or not the vector is empty
100 //! stack-usage of the vector. returns the top of the stack (last element)
113 * append/insert another vector
116 //! insert another vector at a given index
117 ssize_t insertVectorAt(const Vector<TYPE>& vector, size_t index);
119 //! append another vector a
300 insertVectorAt(const Vector<TYPE>& vector, size_t index) argument
305 appendVector(const Vector<TYPE>& vector) argument
[all...]
/frameworks/native/libs/utils/
H A DVectorImpl.cpp109 ssize_t VectorImpl::insertVectorAt(const VectorImpl& vector, size_t index) argument
111 return insertArrayAt(vector.arrayImpl(), index, vector.size());
114 ssize_t VectorImpl::appendVector(const VectorImpl& vector) argument
116 return insertVectorAt(vector, size());
369 // ALOGV("grow vector %p, new_capacity=%d", this, (int)new_capacity);
422 // ALOGV("shrink vector %p, new_capacity=%d", this, (int)new_capacity);
577 ssize_t SortedVectorImpl::merge(const VectorImpl& vector)
580 if (!vector.isEmpty()) {
581 const void* buffer = vector
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dtransform.c434 * description: Calculate max possible scale factor for input vector of shorts
438 static Word16 getScalefactorOfShortVectorStride(const Word16 *vector, /*!< Pointer to input vector */ argument
439 Word16 len, /*!< Length of input vector */
440 Word16 stride) /*!< Stride of input vector */
447 absVal = abs_s(vector[i*stride]);
458 * description: Calculate transform filter for input vector of shorts
/frameworks/base/libs/androidfw/
H A DInput.cpp422 // Construct and transform a vector oriented at the specified clockwise angle from vertical.
424 SkPoint vector; local
425 vector.fX = SkFloatToScalar(sinf(angleRadians));
426 vector.fY = SkFloatToScalar(-cosf(angleRadians));
427 matrix->mapVectors(& vector, 1);
429 // Derive the transformed vector's clockwise angle from vertical.
430 float result = atan2f(SkScalarToFloat(vector.fX), SkScalarToFloat(-vector.fY));
H A DResourceTypes.cpp5209 Vector<uint32_t>& vector = map.editItemAt(mapIndex); local
5218 vector.push(0);
5237 vector.push(overlayResID);
5251 if (last_past_one < vector.size()) {
5252 vector.removeItemsAt(last_past_one, vector.size() - last_past_one);
5255 vector.removeItemsAt(0, first);
5257 vector.insertAt((uint32_t)first, 0, 1);
5259 *outSize += (2 + vector.size()) * sizeof(uint32_t);
5262 vector
5279 const Vector<uint32_t>& vector = map.itemAt(i); local
5290 const Vector<uint32_t>& vector = map.itemAt(i); local
[all...]
/frameworks/base/tools/aapt/
H A DResource.cpp2498 Vector<NamespaceAttributePair> vector; local
2499 vector.add(NamespaceAttributePair(ns, attr));
2500 dest->add(tagStr, vector);

Completed in 180 milliseconds