Commit 32e41b7b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Estimation DLL, LogLikelihoodMain: fixed bug (likelihood was not initialized to zero)

parent e1b274f2
......@@ -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);
......
......@@ -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_)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment