Changeset 1077 for library/bdm/estim/particles.h
- Timestamp:
- 06/10/10 21:40:09 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/estim/particles.h
r1068 r1077 67 67 } 68 68 } 69 70 71 /*! Create object from the following structure 72 73 \code 74 class = "MarginalizedParticleBase"; 75 bm = configuration of bdm::BM; % any offspring of BM, bdm::BM::from_setting 76 --- inherited fields --- 77 bdm::BM::from_setting 78 \endcode 79 */ 69 80 void from_setting(const Setting &set) { 70 81 BM::from_setting ( set ); … … 78 89 }; 79 90 91 //! \brief Internal class used in PF (surely?) 80 92 class MarginalizedParticle : public MarginalizedParticleBase { 81 93 protected: … … 110 122 } 111 123 112 /*! parse structure 124 /*! Create object from the following structure 125 113 126 \code 114 127 class = "MarginalizedParticle"; 115 parameter_pdf = {class = 'epdf_offspring', ...}; 116 bm = {class = 'bm_offspring',...}; 128 parameter_pdf = configuration of bdm::epdf; % any offspring of epdf, bdm::epdf::from_setting 129 --- inherited fields --- 130 bdm::MarginalizedParticleBase::from_setting 117 131 \endcode 118 If rvs are set, then it checks for compatibility. 119 */ 132 */ 120 133 void from_setting(const Setting &set) { 121 134 MarginalizedParticleBase::from_setting ( set ); … … 159 172 UIREGISTER(MarginalizedParticle); 160 173 161 //! class used in PF174 //! Internal class which is used in PF 162 175 class BootstrapParticle : public BM { 163 176 dirac est; … … 193 206 } 194 207 195 /*! parsestructure208 /*! Create object from the following structure 196 209 \code 197 210 class = "BootstrapParticle"; 198 parameter_pdf = {class = 'epdf_offspring', ...}; 199 observation_pdf = {class = 'epdf_offspring',...}; 211 parameter_pdf = configuration of bdm::epdf; % any offspring of epdf, bdm::epdf::from_setting 212 observation_pdf = configuration of bdm::epdf; % any offspring of epdf, bdm::epdf::from_setting 213 --- inherited fields --- 214 bdm::BM::from_setting 200 215 \endcode 201 If rvs are set, then it checks for compatibility.202 216 */ 203 217 void from_setting(const Setting &set) { … … 206 220 obs = UI::build<pdf> ( set, "observation_pdf", UI::compulsory ); 207 221 } 222 208 223 void validate() { 209 224 yrv = obs->_rv();