diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2013-03-08 17:47:39 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2013-03-08 17:47:39 +0100 |
commit | 2e8cef8f61fdec3aa374ff167c95ebe8058ef04b (patch) | |
tree | e6073a863add1e0c3e9934f7bd4fa230407f7ad9 /src/iqbal.c | |
parent | c0fd99fcd28e3b10a4180fb6afce682821869574 (diff) |
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>
Diffstat (limited to 'src/iqbal.c')
-rw-r--r-- | src/iqbal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iqbal.c b/src/iqbal.c index ddbd4a7..f4c29c6 100644 --- a/src/iqbal.c +++ b/src/iqbal.c @@ -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]; |