Package ca.nengo.math

Examples of ca.nengo.math.PDF.multiMap()


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