[Bayes++] Deriving observe likelihood model from Likelihood_observe_model for SIR_scheme
Brought to you by:
mistevens
From: yon <yo...@ci...> - 2007-05-09 15:34:13
|
Dear List, Dear Michael, I'm adapting SIR_scheme to use in my application, in which I have an =20 explicit model for the dynamics (although the nature of the model =20 necessitated that I derive a new class from SIR_scheme because the =20 dynamics is non-static). Attempting to compile my program, I encounter the an error message =20 which I cannot figure out: error: expected primary-expression before 'int' error: no matching function for call to =20 'Bayesian_filter_matrix::detail::FMVec<Bayesian_filter_matrix::detail::B=20= aseVector>::FMVec()' both errors referencing the call to the Likelihood_observe_model =20 constructor here: CDcp_observe_likelihood::CDcp_observe_likelihood(int Nout,int =20 NModels, int NParticles, int WinSize, TDouble Sigma, TDouble Beta) : Bayesian_filter::Likelihood_observe_model(int Nout) // The 2nd constructor allocates memory to store the observation = as =20 the member z { mNModels =3D NModels; mNParticles =3D NParticles; mWinSize =3D WinSize; mNout =3D Nout; =09 mInvSd =3D sqrt(Sigma); mBeta =3D Beta; mInvSigmaTimesWinSize =3D 1.0 / (WinSize * Sigma); =09 resetState(); } If it is relevant, at the top of the file I have the includes listed =20 below. Thanks for any assistance. -- Yon #include <math.h> #include <iostream> #include <stdlib.h> #include <assert.h> #include <fstream> #include "yvDefines.h" #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/matrix_proxy.hpp> #include <boost/numeric/ublas/io.hpp> #include "../Bayes++/BayesFilter/bayesFlt.hpp" #include "../Bayes++/BayesFilter/SIRFlt.hpp" using namespace boost::numeric::ublas; __________________________________ Yon Visell Centre for Intelligent Machines, McGill University http://cim.mcgill.ca/~yon CIRMMT, Schulich School of Music, McGill University http://www.music.mcgill.ca/cirmmt University of Applied Sciences & Arts Z=FCrich CLOSED: Closing the loop of sound evaluation and design http://closed.ircam.fr Zero-Th Association, Pula, Croatia http://www.zero-th.org Tel +1 514 967 1648 Fax +1 415 520 0193 |