Package ca.nengo.model.impl

Examples of ca.nengo.model.impl.PreciseSpikeOutputImpl


    InstantaneousOutput result = null;

    if (myMode.equals(SimulationMode.CONSTANT_RATE) || myMode.equals(SimulationMode.RATE)) {
      result = new RealOutputImpl(new float[]{doConstantRateRun(time[0], current[0])}, Units.SPIKES_PER_S, time[time.length-1]);
    } else if (myMode.equals(SimulationMode.PRECISE)) {
      result = new PreciseSpikeOutputImpl(new float[]{doPreciseSpikingRun(time, current)}, Units.SPIKES, time[time.length-1]);
    } else {
      //result = new SpikeOutputImpl(new boolean[]{doSpikingRun(time, current)}, Units.SPIKES, time[time.length-1]);
      result = new SpikeOutputImpl(new boolean[]{doPreciseSpikingRun(time, current)>=0}, Units.SPIKES, time[time.length-1]);
    }
View Full Code Here


      myRateHistory = new float[]{spikeTime>=0 ? 1f/dt : 0};

      if (myMode.equals(SimulationMode.DEFAULT)) {
                result = new SpikeOutputImpl(new boolean[]{spikeTime>=0f}, Units.SPIKES, time[time.length-1]);
            } else {
                result = new PreciseSpikeOutputImpl(new float[]{spikeTime}, Units.SPIKES, time[time.length-1]);
            }
    } else if (myMode.equals(SimulationMode.RATE)) {
      float rate = I > 1 ? 1f / ( myTauRef - myTauRC * ((float) Math.log(1f - 1f/I)) ) : 0;
      myN += (rate * dt) * myIncN; //analog of # spikes X increment

View Full Code Here

TOP

Related Classes of ca.nengo.model.impl.PreciseSpikeOutputImpl

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.