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); }
inline double MeanModel::muTimesFeat(const vectord& x) { return boost::numeric::ublas::inner_prod(mMu,mMean->getFeatures(x));}
inline void MeanModel::getFeatures(const vectord& x, vectord& kx) { kx = mMean->getFeatures(x); }
inline vectord MeanModel::getFeatures(const vectord& x) { return mMean->getFeatures(x); }