forked from sdr/libosmo-dsp
iqbal: Reduce gradient step
1e-3 is withing the range of value we're looking for, so we need something smaller. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
c0fd99fcd2
commit
2e8cef8f61
|
@ -249,7 +249,7 @@ _iqbal_objfn_value(struct _iqbal_state *state, float x[2])
|
|||
static void
|
||||
_iqbal_objfn_gradient(struct _iqbal_state *state, float x[2], float v, float grad[2])
|
||||
{
|
||||
const float GRAD_STEP = 0.001f;
|
||||
const float GRAD_STEP = 1e-6f;
|
||||
float xd[2], vd[2];
|
||||
|
||||
xd[0] = x[0] + GRAD_STEP; xd[1] = x[1];
|
||||
|
|
Loading…
Reference in New Issue