* Test method for 'ca.nengo.math.impl.SigmoidFunction.map(float[])'
*/
public void testMap() {
SigmoidFunction f = new SigmoidFunction();
TestUtil.assertClose(0.5f, f.map(new float[]{0}), .00001f);
TestUtil.assertClose(1f, f.map(new float[]{100}), .00001f);
TestUtil.assertClose(0.952574f, f.map(new float[]{3}), .00001f);
f = new SigmoidFunction(0f,1f,2f,3f);
TestUtil.assertClose(2f, f.map(new float[]{-100}), .00001f);
TestUtil.assertClose(2.5f, f.map(new float[]{0}), .00001f);
TestUtil.assertClose(2.960834f, f.map(new float[]{.8f}), .00001f);