Package ca.nengo.math.impl

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


  /*
   * Test method for 'ca.nengo.math.impl.IdentityFunction.map(float[])'
   */
  public void testMap() {
    IdentityFunction f = new IdentityFunction(3, 0);
    TestUtil.assertClose(.1f, f.map(new float[]{.1f, .2f, .3f}), .00001f);

    f = new IdentityFunction(3, 1);
    TestUtil.assertClose(.2f, f.map(new float[]{.1f, .2f, .3f}), .00001f);
  }

View Full Code Here


  public void testMap() {
    IdentityFunction f = new IdentityFunction(3, 0);
    TestUtil.assertClose(.1f, f.map(new float[]{.1f, .2f, .3f}), .00001f);

    f = new IdentityFunction(3, 1);
    TestUtil.assertClose(.2f, f.map(new float[]{.1f, .2f, .3f}), .00001f);
  }

  /*
   * Test method for 'ca.nengo.math.impl.IdentityFunction.multiMap(float[][])'
   */
 
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.