164 | | V0 = [1 0;0 1]; // Initial value of information matrix V |
165 | | --- OR --- |
166 | | dV0 = [1e-3, 1e-5, 1e-5, 1e-5]; // Initial value of diagonal of information matrix V |
167 | | // default: 1e-3 for rv, 1e-5 for rgr |
168 | | nu0 = 6; // initial value of nu, default: rgrlen + 2 |
| 164 | prior = {class='egiw',...}; // Prior density, when given default is used instead |
| 165 | alternative = {class='egiw',...}; // Alternative density in stabilized estimation, when not given prior is used |
| 166 | |
| 178 | } |
| 179 | //! function sets prior and alternative density |
| 180 | void set_prior(const RV &drv, egiw &prior){ |
| 181 | //TODO check ranges in RV and build prior |
| 182 | }; |
| 183 | //! build default prior and alternative when all values are set |
| 184 | void set_prior_default(egiw &prior){ |
| 185 | //assume |
| 186 | vec dV0(prior._V().rows()); |
| 187 | dV0.set_subvector(0,prior._dimx()-1, 1.0); |
| 188 | dV0.set_subvector(prior._dimx(),dV0.length()-1, 1e-5); |
| 189 | |
| 190 | prior.set_parameters(prior._dimx(),ldmat(dV0)); |