Package ca.nengo.math.impl

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


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

    float[] values = f.multiMap(new float[][]{new float[]{.1f, .2f, .3f}, new float[]{.2f, .3f, .4f}});
    TestUtil.assertClose(.1f, values[0], .00001f);
    TestUtil.assertClose(.2f, values[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.