Package ca.nengo.math.impl

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


  /*
   * Test method for 'ca.nengo.math.impl.ConstantFunction.multiMap(float[][])'
   */
  public void testMultiMap() {
    ConstantFunction f = new ConstantFunction(1, 1f);
    float[] result = f.multiMap(new float[][]{new float[]{0f}, new float[]{1f}});
   
    assertEquals(2, result.length);
    assertClose(1f, result[0], .00001f);
    assertClose(1f, result[1], .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.