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:
parent
febaa059c2
commit
d0ca6493bd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user