1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

cleaning filter optimisation

This commit is contained in:
Antonin Portelli 2024-03-12 11:08:20 +09:00
parent febaa059c2
commit d0ca6493bd

View File

@ -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;
}