getp.cc

来自「2007年机器人足球世界杯3D仿真组亚军于07年底的源程序。该队还于2008年获」· CC 代码 · 共 13 行

CC
13
字号
#include "normaldistribution3d.ih"double NormalDistribution3D::getP(Vector3D const &x) const{  // P(x) = 1 / ((2 * pi)^(N/2) * |S|^(1/2)) * e ^ (- 1/2 * (x - mu)T * S^-1 * (x - mu))  Vector3D temp;  Vector3D xminmu = x - d_mu;  Matrix9D::mulTVect(temp, xminmu, d_invSigma);    return d_factor * exp(-0.5 * temp.dotProduct(xminmu));}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?