Package ca.nengo.math.impl

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


   * Test method for 'ca.nengo.math.impl.Polynomial.multiMap(float[][])'
   */
  public void testMultiMap() {
    Polynomial f = new Polynomial(new float[]{-1,0,2,-1});

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