Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Johannes Pfeifer
dynare
Commits
32e41b7b
Commit
32e41b7b
authored
Jun 11, 2010
by
Sébastien Villemot
Browse files
Estimation DLL, LogLikelihoodMain: fixed bug (likelihood was not initialized to zero)
parent
e1b274f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
mex/sources/estimation/LogLikelihoodMain.cc
View file @
32e41b7b
...
...
@@ -48,6 +48,7 @@ LogLikelihoodMain::~LogLikelihoodMain()
double
LogLikelihoodMain
::
compute
(
Matrix
&
steadyState
,
const
Vector
&
estParams
,
Vector
&
deepParams
,
const
MatrixConstView
&
data
,
Matrix
&
Q
,
Matrix
&
H
,
size_t
start
,
int
&
info
)
{
double
logLikelihood
=
0
;
for
(
size_t
i
=
0
;
i
<
estSubsamples
.
size
();
++
i
)
{
VectorView
vSteadyState
=
mat
::
get_col
(
steadyState
,
i
);
...
...
mex/sources/estimation/LogLikelihoodMain.hh
View file @
32e41b7b
...
...
@@ -29,7 +29,6 @@
class
LogLikelihoodMain
{
private:
double
logLikelihood
;
std
::
vector
<
EstimationSubsample
>
&
estSubsamples
;
// reference to member of EstimatedParametersDescription
LogLikelihoodSubSample
logLikelihoodSubSample
;
Vector
vll
;
// vector of all KF step likelihoods
...
...
@@ -58,12 +57,6 @@ public:
{
return
vll
;
};
double
getLogLikelihood
()
{
return
logLikelihood
;
};
};
#endif // !defined(E126AEF5_AC28_400a_821A_3BCFD1BC4C22__INCLUDED_)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment