func = new SigmoidFunction(-1f, 0.3f, -0.5f, 1f);
root = nrf.findRoot(func, -5, 5, 0.0001f);
TestUtil.assertClose(func.map(new float[]{root}), 0, 0.001f);
func = new SineFunction(0.5f);
root = nrf.findRoot(func, -5, 5, 0.0001f);
TestUtil.assertClose(func.map(new float[]{root}), 0, 0.001f);
}