Skip to content

Commit

Permalink
extend debug automation
Browse files Browse the repository at this point in the history
  • Loading branch information
OnionKiller committed Dec 4, 2020
1 parent 065a128 commit 935c3a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions EnvTest/src/Modell/modell_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ double imperfect_virtualage_likelihood::get_likelihood()
auto sum = std::transform_reduce(std::execution::par, Vi_save.begin(), Vi_save.end(), Vi_list.begin(), (long double)0, std::plus<>(), [this](Vi& Vix, Vi& Vi)->long double {
return std::powl(Vi.value, Cbeta) - std::powl(Vix.value, Cbeta);
});

#ifdef _DEBUG
//debug print
std::cout << pi << "(pi) -- " << sum << "(sum)" << std::endl;
#endif // _DEBUG

auto result = pi * std::expl(1. / std::powl(Ceta, Cbeta) * sum);
return result;
}
Expand Down

0 comments on commit 935c3a6

Please sign in to comment.