mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-04-11 03:20:46 +01: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;
|
return res;
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|
||||||
prec = 0.1;
|
|
||||||
min.setPrecision(prec);
|
min.setPrecision(prec);
|
||||||
reg = min(fnReg)(0);
|
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;
|
return reg;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user