Searched defs:vector (Results 1 - 10 of 10) 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/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.h159 ASensorVector vector; member in union:ASensorEvent::__anon1213::__anon1214
/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/media/jni/
H A Dandroid_media_MediaDrm.cpp402 Vector<uint8_t> vector; local
404 vector.insertAt((size_t)0, length);
405 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray());
406 return vector;
409 static jbyteArray VectorToJByteArray(JNIEnv *env, Vector<uint8_t> const &vector) { argument
410 size_t length = vector.size();
413 env->SetByteArrayRegion(result, 0, length, (jbyte *)vector.array());
/frameworks/base/tools/aapt/
H A DResource.cpp2989 Vector<NamespaceAttributePair> vector; local
2990 vector.add(NamespaceAttributePair(ns, attr));
2991 dest->add(tagStr, vector);

Completed in 662 milliseconds