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

Method init

bayes/src/infRtFlt.cpp:36–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35
36void Information_root_scheme::init ()
37/* Initialise the filter from x,X
38 * Precondition:
39 * x,X
40 * Postcondition:
41 * inv(R)*inv(R)' = X is PSD
42 * r = R*x
43 */
44{
45 // Information Root
46 Float rcond = UCfactor (R, X);
47 rclimit.check_PD(rcond, "Initial X not PD");
48 bool singular = UTinverse (R);
49 assert (!singular); (void)singular;
50 // Information Root state r=R*x
51 noalias(r) = prod(R,x);
52}
53
54void Information_root_info_scheme::init_yY ()
55/* Special Initialisation directly from Information form

Callers

nothing calls this directly

Calls 3

UCfactorFunction · 0.85
UTinverseFunction · 0.85
check_PDMethod · 0.80

Tested by

no test coverage detected