* Test method for 'ca.nengo.math.impl.NumericallyDifferentiableFunction.getDerivative()'
*/
public void testGetDerivative() {
SigmoidFunction f = new SigmoidFunction(-1f,0.5f,1f,2f);
Function g = f.getDerivative();
NumericallyDifferentiableFunction wrap = new NumericallyDifferentiableFunction(f, 0, 0.01f);
Function gWrap = wrap.getDerivative();
assertEquals(gWrap.getDimension(), g.getDimension());
TestUtil.assertClose(gWrap.map(new float[]{0f}), g.map(new float[]{0f}), .0001f);
TestUtil.assertClose(gWrap.map(new float[]{-1f}), g.map(new float[]{-1f}), .0001f);
TestUtil.assertClose(gWrap.map(new float[]{3f}), g.map(new float[]{3f}), .0001f);