Skip to content

Commit

Permalink
cleaning filter optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
aportelli committed Mar 12, 2024
1 parent febaa05 commit d0ca649
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/LatAnalyze/Physics/DataFilter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,9 @@ double LaplaceDataFilter::optimiseFunction(const StatArray<MatType, o> &data,

return res;
}, 1);

prec = 0.1;

min.setPrecision(prec);
reg = min(fnReg)(0);
for (unsigned int pass = 0; pass < nPass; pass++)
{
min.setLowLimit(0., (1.-10.*prec)*reg);
min.setHighLimit(0., (1.+10.*prec)*reg);
init(0) = reg;
min.setInit(init);
prec *= 0.1;
min.setPrecision(prec);
reg = min(fnReg)(0);
}

return reg;
}
Expand Down

0 comments on commit d0ca649

Please sign in to comment.