Re: [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:55:25
|
Dear List, Apologies for the email I'm replying to.. this was the error I'd =20 meant to send: /Developer/YV-dev/DcpTest/vecDcp.cpp: In constructor =20 'CDcp_observe_likelihood::CDcp_observe_likelihood(int, int, int, int, =20= float, float)': /Developer/YV-dev/DcpTest/vecDcp.cpp:490: error: no matching function =20= for call to =20 'Bayesian_filter_matrix::detail::FMVec<Bayesian_filter_matrix::detail::B=20= aseVector>::FMVec()' The constructor for FMVec() appears not to be found, so I would guess =20= I have an includes problem. The code is below, followed by the includes. The class has a member bf::FM::Vec mvecRawWeights; // Non-normalized weights which I guess is where FMVec() comes in to play. Thanks, Yon //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 CDcp_observe_likelihood::CDcp_observe_likelihood CDcp_observe_likelihood::CDcp_observe_likelihood( int Nout,int NModels, int NParticles, int WinSize, = TDouble Sigma, =20 TDouble Beta) : Likelihood_observe_model(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(); } #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" #include "../Bayes++/BayesFilter/models.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 __________________________________ 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 |