Package ca.nengo.model.neuron.impl

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


    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[1]})).getValues()[0], 111f, 112f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[2]})).getValues()[0], 236f, 237f);
       
    sg = new LIFSpikeGenerator(maxTimeStep, tauRC[1], tauRef[0]);
    sg.setMode(SimulationMode.CONSTANT_RATE);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[0]})).getValues()[0], -.001f, .001f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[1]})).getValues()[0], 67f, 68f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[2]})).getValues()[0], 183f, 184f);

    sg = new LIFSpikeGenerator(maxTimeStep, tauRC[1], tauRef[1]);
    sg.setMode(SimulationMode.CONSTANT_RATE);
View Full Code Here


    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[2]})).getValues()[0], 236f, 237f);
       
    sg = new LIFSpikeGenerator(maxTimeStep, tauRC[1], tauRef[0]);
    sg.setMode(SimulationMode.CONSTANT_RATE);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[0]})).getValues()[0], -.001f, .001f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[1]})).getValues()[0], 67f, 68f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[2]})).getValues()[0], 183f, 184f);

    sg = new LIFSpikeGenerator(maxTimeStep, tauRC[1], tauRef[1]);
    sg.setMode(SimulationMode.CONSTANT_RATE);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[0]})).getValues()[0], -.001f, .001f);
View Full Code Here

       
    sg = new LIFSpikeGenerator(maxTimeStep, tauRC[1], tauRef[0]);
    sg.setMode(SimulationMode.CONSTANT_RATE);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[0]})).getValues()[0], -.001f, .001f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[1]})).getValues()[0], 67f, 68f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[2]})).getValues()[0], 183f, 184f);

    sg = new LIFSpikeGenerator(maxTimeStep, tauRC[1], tauRef[1]);
    sg.setMode(SimulationMode.CONSTANT_RATE);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[0]})).getValues()[0], -.001f, .001f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[1]})).getValues()[0], 63f, 64f);
View Full Code Here

    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[1]})).getValues()[0], 67f, 68f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[2]})).getValues()[0], 183f, 184f);

    sg = new LIFSpikeGenerator(maxTimeStep, tauRC[1], tauRef[1]);
    sg.setMode(SimulationMode.CONSTANT_RATE);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[0]})).getValues()[0], -.001f, .001f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[1]})).getValues()[0], 63f, 64f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[2]})).getValues()[0], 154f, 155f);
  }
 
  /*
 
View Full Code Here

    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[2]})).getValues()[0], 183f, 184f);

    sg = new LIFSpikeGenerator(maxTimeStep, tauRC[1], tauRef[1]);
    sg.setMode(SimulationMode.CONSTANT_RATE);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[0]})).getValues()[0], -.001f, .001f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[1]})).getValues()[0], 63f, 64f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[2]})).getValues()[0], 154f, 155f);
  }
 
  /*
   * Test method for 'ca.bpt.cn.model.impl.LIFSpikeGenerator.run(float[], float[])'
View Full Code Here

    sg = new LIFSpikeGenerator(maxTimeStep, tauRC[1], tauRef[1]);
    sg.setMode(SimulationMode.CONSTANT_RATE);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[0]})).getValues()[0], -.001f, .001f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[1]})).getValues()[0], 63f, 64f);
    assertBetween(((RealOutput) sg.run(new float[1], new float[]{current[2]})).getValues()[0], 154f, 155f);
  }
 
  /*
   * Test method for 'ca.bpt.cn.model.impl.LIFSpikeGenerator.run(float[], 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.