Examples of multiMap()


Examples of ca.nengo.math.impl.SigmoidFunction.multiMap()

   * Test method for 'ca.nengo.math.impl.SigmoidFunction.multiMap(float[][])'
   */
  public void testMultiMap() {
    SigmoidFunction f = new SigmoidFunction();

    float[] values = f.multiMap(new float[][]{new float[]{3}, new float[]{-2}});
    TestUtil.assertClose(0.952574f, values[0], .00001f);
    TestUtil.assertClose(0.1192029f, values[1], .00001f);
  }
 
  /*
 
View Full Code Here

Examples of ca.nengo.math.impl.SigmoidFunction.multiMap()

   */
  public void testMultiMap() {
    SigmoidFunction f = new SigmoidFunction();
    NumericallyDifferentiableFunction wrap = new NumericallyDifferentiableFunction(f, 0, 0.1f);

    float[] values = f.multiMap(new float[][]{new float[]{3}, new float[]{-2}});
    float[] newVals = wrap.multiMap(new float[][]{new float[]{3}, new float[]{-2}});
    assertEquals(values[0],newVals[0]);
    assertEquals(values[1],newVals[1]);
  }
 
View Full Code Here

Examples of ca.nengo.math.impl.SigmoidFunction.multiMap()

   */
  public void testMultiMap() {
    SigmoidFunction f = new SigmoidFunction();
    NumericallyDifferentiableFunction wrap = new NumericallyDifferentiableFunction(f, 0, 0.1f);

    float[] values = f.multiMap(new float[][]{new float[]{3}, new float[]{-2}});
    float[] newVals = wrap.multiMap(new float[][]{new float[]{3}, new float[]{-2}});
    assertEquals(values[0],newVals[0]);
    assertEquals(values[1],newVals[1]);
  }
 
View Full Code Here

Examples of ca.nengo.math.impl.SineFunction.multiMap()

   * Test method for 'ca.nengo.math.impl.SineFunction.multiMap(float[][])'
   */
  public void testMultiMap() {
    SineFunction f = new SineFunction(0.5f);

    float[] values = f.multiMap(new float[][]{new float[]{3f}, new float[]{-2f}, new float[]{(float)-Math.PI}});
    TestUtil.assertClose(0.997495f, values[0], .00001f);
    TestUtil.assertClose(-0.84147f, values[1], .00001f);
    TestUtil.assertClose(-1f, values[2], .00001f);
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.