Package ca.nengo.math.impl

Examples of ca.nengo.math.impl.InterpolatedFunction


 
  public void testCloneInterpolatedFunction() throws CloneNotSupportedException {
    float[] x = new float[]{0, 1};
    float[] y = new float[]{1, 2};
   
    InterpolatedFunction f = new InterpolatedFunction(x, y);
    InterpolatedFunction f2 = (InterpolatedFunction) f.clone();
    f.setX(new float[]{0, 5});
    assertTrue(f2.getX()[1] < 2);
  }
View Full Code Here


   * Note that inputs x must be sorted from lowest to highest.
   *
   * @see ca.nengo.math.CurveFitter#fit(float[], float[])
   */
  public Function fit(float[] x, float[] y) {
    return new InterpolatedFunction(x, y);
  }
View Full Code Here

TOP

Related Classes of ca.nengo.math.impl.InterpolatedFunction

Copyright © 2018 www.massapicom. 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.