Пример #1
0
 inline void MeanModel::addNewPoint(const vectord &x)
 { 
   using boost::numeric::ublas::column;
   
   mFeatM.resize(mFeatM.size1(),mFeatM.size2()+1);  
   column(mFeatM,mFeatM.size2()-1) = mMean->getFeatures(x);
 }
Пример #2
0
 inline double MeanModel::muTimesFeat(const vectord& x)
 { return boost::numeric::ublas::inner_prod(mMu,mMean->getFeatures(x));}
Пример #3
0
 inline void MeanModel::getFeatures(const vectord& x, vectord& kx)
 { kx = mMean->getFeatures(x); }  
Пример #4
0
 inline vectord MeanModel::getFeatures(const vectord& x) 
 { return mMean->getFeatures(x); }