Used to update the value of vector[index] by blending with the previous value. Used in iterations of the Tracker; or more general for iterations in online learning. Definition at line 85 of file Classifier.h. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(), mDimensionality, mGamma, mObjectVectors, and mSize. Referenced by Impala::Core::Tracking::TrackerBackFore::UpdateObject(). 00086 { 00087 if(index >= mSize) 00088 std::cout << "[Classifier::UpdateVec] Classifier out of bounds" << std::endl; 00089 const double* vp = v.CPB(0,0); 00090 double* op = mObjectVectors->CPB(0,index); 00091 for(int i=0 ; i<mDimensionality ; i++) 00092 { 00093 op[i] = op[i] * (1.0-mGamma) + vp[i] * mGamma; 00094 } 00095 }
Here is the call graph for this function:
|