Searched defs:vector (Results 1 - 11 of 11) 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/
H A DGlop.h136 float vector[4]; member in struct:android::uirenderer::Glop::Fill::Filter::Matrix
/frameworks/base/media/jni/
H A Dandroid_media_MediaCrypto.cpp141 Vector<uint8_t> vector; local
143 vector.insertAt((size_t)0, length);
144 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray());
145 return vector;
H A Dandroid_media_MediaDrm.cpp431 Vector<uint8_t> vector; local
433 vector.insertAt((size_t)0, length);
434 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray());
435 return vector;
438 static jbyteArray VectorToJByteArray(JNIEnv *env, Vector<uint8_t> const &vector) { argument
439 size_t length = vector.size();
442 env->SetByteArrayRegion(result, 0, length, (jbyte *)vector.array());
/frameworks/ml/bordeaux/learning/multiclass_pa/native/
H A Dmulticlass_pa.cpp26 using std::vector;
70 float MulticlassPA::Score(const vector<float>& inputs,
71 const vector<float>& parameters) const {
80 float MulticlassPA::SparseScore(const vector<pair<int, float> >& inputs, argument
81 const vector<float>& parameters) const {
91 float MulticlassPA::L2NormSquare(const vector<float>& inputs) const {
100 const vector<pair<int, float> >& inputs) const {
108 float MulticlassPA::TrainOneExample(const vector<float>& inputs, int target) {
141 const vector<pair<int, float> >& inputs, int target) {
173 float MulticlassPA::Train(const vector<pai argument
99 SparseL2NormSquare( const vector<pair<int, float> >& inputs) const argument
140 SparseTrainOneExample( const vector<pair<int, float> >& inputs, int target) argument
185 SparseTrain( const vector<pair<vector<pair<int, float> >, int> >& data, int num_iterations) argument
212 SparseGetClass(const vector<pair<int, float> >& inputs) argument
226 Test(const vector<pair<vector<float>, int> >& data) argument
238 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
60 // true if the checks succeed and false otherwise. A vector is deemed invalid
115 // Load another weight vectors. Will overwrite the current vector.
160 // Convert this vector to a string, simply for debugging.
192 const SparseWeightVector<Key, Hash> &vector) {
193 typename SparseWeightVector<Key, Hash>::Wmap w_map = vector.GetMap();
191 operator <<(std::ostream &stream, const SparseWeightVector<Key, Hash> &vector) argument
/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/native/include/android/
H A Dsensor.h234 ASensorVector vector; member in union:ASensorEvent::__anon1324::__anon1325
/frameworks/base/tools/aapt/
H A DResource.cpp3051 Vector<NamespaceAttributePair> vector; local
3052 vector.add(NamespaceAttributePair(ns, attr));
3053 dest->add(tagStr, vector);

Completed in 315 milliseconds