Skip to content

Commit

Permalink
Remove numerical diffusion code for inference.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnettel committed Apr 25, 2016
1 parent 69a10d3 commit 90bc3b5
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions cnF2freq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3491,31 +3491,6 @@ template<bool full, typename reporterclass> void doit(FILE* out, bool printalot
if (DOINFPROBS) {
#pragma omp critical(infprobs)
{

// Add some diffusion to avoid numerical runaway scenarios for essentially symmetrical cases
/*if (dous[j]->pars[0] && dous[j]->pars[1])
for (int a = 0; a < 2; a++)
{
for (int b = 0; b < 2; b++)
{
if ((&(dous[j]->pars[0]->markerdata[marker].first))[a] !=
(&(dous[j]->pars[1]->markerdata[marker].first))[b]) continue;
double diff = (&(dous[j]->pars[0]->markersure[marker].first))[a] -
(&(dous[j]->pars[1]->markersure[marker].first))f[b];
if (fabs(diff) < 0.001)
{
diff *= 0.001 - fabs(diff);
diff /= 0.001;
(&(dous[j]->pars[0]->markersure[marker].first))[a] -= diff;
(&(dous[j]->pars[1]->markersure[marker].first))[b] += diff;
}
}
}*/


for (int a = 0; a < 2; a++)
{
if (!dous[j]->pars[a]) continue;
Expand Down

0 comments on commit 90bc3b5

Please sign in to comment.