Package ca.nengo.sim

Examples of ca.nengo.sim.Simulator.run()


      Probe inputRecorder = simulator.addProbe("input", "input", true);
      Probe integratorRecorder = simulator.addProbe("integrator", NEFEnsemble.X, true);
      Probe neuronRecorder = simulator.addProbe("integrator", 0, "V", true);

      long startTime = System.currentTimeMillis();
      simulator.run(0f, 1f, .0002f);
      System.out.println("Run time: " + ((System.currentTimeMillis() - startTime)/1000f) );
   
      TimeSeries integratorData = integratorRecorder.getData();
      integratorData.getLabels()[0] = "decoded output";
     
View Full Code Here


                simulator.resetNetwork(false, true);
                simulator.addSimulatorListener(NengoGraphics.getInstance().getProgressIndicator());
               
                try {
                    simulator.run(startTime, endTime, stepTime);
                } finally {
                    simulator.removeSimulatorListener(NengoGraphics.getInstance().getProgressIndicator());
                }

                ((NengoGraphics) (UIEnvironment.getInstance())).captureInDataViewer(uiNetwork
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.