MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / mean

Method mean

bayes/src/SIRFlt.cpp:454–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452
453
454void SIR_kalman_scheme::mean ()
455/* Update state mean
456 * Pre : S
457 * Post: x,S
458 */
459{
460 // Mean of distribution: mean of particles
461 x.clear();
462 const std::size_t nSamples = S.size2();
463 for (std::size_t i = 0; i != nSamples; ++i) {
464 FM::ColMatrix::Column Si(S,i);
465 x.plus_assign (Si);
466 }
467 x /= Float(S.size2());
468}
469
470
471Bayes_base::Float

Callers 4

mainFunction · 0.80
predictMethod · 0.80
TYPED_TESTFunction · 0.80
FillMethod · 0.80

Calls 1

clearMethod · 0.80

Tested by 1

TYPED_TESTFunction · 0.64