Package ca.nengo.model.neuron.impl

Examples of ca.nengo.model.neuron.impl.IzhikevichSpikeGenerator.run()


    List<Integer> firings2 = new ArrayList<Integer>(10);
    for (int i = 0; i < 1000; i++) {
      SpikeOutput o1 = (SpikeOutput) rs.run(new float[]{i/1000f, (i+1)/1000f}, new float[]{I, I});
      if (o1.getValues()[0]) firings1.add(Integer.valueOf(i));
     
      SpikeOutput o2 = (SpikeOutput) fs.run(new float[]{i/1000f, (i+1)/1000f}, new float[]{I, I});
      if (o2.getValues()[0]) firings2.add(Integer.valueOf(i));
    }
   
    assertEquals(10, firings1.size());
    assertEquals(33, firings2.size());
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.