⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getsigma.cc

📁 The Little Green BATS is the first and so far only Dutch team in the 3D simulation league. We are a
💻 CC
字号:
#include "montecarlodistribution.ih"void MonteCarloDistribution::getSigma(Matrix9D &sigma) const{  Vector3D mu;  getMu(mu);  Matrix9D sums;    for (vector<Particle>::const_iterator iter = d_particles.begin(); iter != d_particles.end(); iter++)  {    Matrix9D temp;    for (unsigned i = 0; i < 3; i++)      for (unsigned j = 0; j < 3; j++)        temp.set(i, j, (iter->coords.get(i) - mu.get(i)) * (iter->coords.get(j) - mu.get(j)));    sums = sums + temp;  }  sigma = sums / d_nParticles;}

⌨️ 快捷键说明

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