Package ca.nengo.model.neuron.impl

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


    float[] voltage1 = ((TimeSeries1D) sg.getHistory("V")).getValues1D();

    sg.run(new float[]{0f, .005f}, new float[]{1f, 1f});
    float[] voltage2 = ((TimeSeries1D) sg.getHistory("V")).getValues1D();
   
    sg.reset(false);
   
    sg.run(new float[]{0f, .005f}, new float[]{1f, 1f});
    float[] voltage3 = ((TimeSeries1D) sg.getHistory("V")).getValues1D();
   
    assertBetween(voltage1[0], .2f, .23f);
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.