Lines Matching full:apt
241 Point3d aPt= positionsV[i]; in getNewValue() local
245 sPt.x *= std::exp(aPt.z); in getNewValue()
246 sPt.y *= std::exp(aPt.z); in getNewValue()
248 aPt.x /= sPt.x; in getNewValue()
249 aPt.y /= sPt.y; in getNewValue()
250 aPt.z /= sPt.z; in getNewValue()
256 … double w = (weightsV[i])*std::exp(-((aPt-bPt).dot(aPt-bPt))/2)/std::sqrt(sPt.dot(Point3d(1,1,1))); in getNewValue()
258 resPoint += w*aPt; in getNewValue()
275 Point3d aPt = positionsV[i]; in getResultWeight() local
278 sPt.x *= std::exp(aPt.z); in getResultWeight()
279 sPt.y *= std::exp(aPt.z); in getResultWeight()
281 aPt -= inPt; in getResultWeight()
283 aPt.x /= sPt.x; in getResultWeight()
284 aPt.y /= sPt.y; in getResultWeight()
285 aPt.z /= sPt.z; in getResultWeight()
287 sumW+=(weightsV[i])*std::exp(-(aPt.dot(aPt))/2)/std::sqrt(sPt.dot(Point3d(1,1,1))); in getResultWeight()
292 Point3d moveToMode(Point3d aPt) const in moveToMode()
297 bPt = aPt; in moveToMode()
298 aPt = getNewValue(bPt); in moveToMode()
299 if ( getDistance(aPt, bPt) <= modeEps ) in moveToMode()
304 return aPt; in moveToMode()