Examples of RK45Integrator


Examples of ca.nengo.dynamics.impl.RK45Integrator

    if (dynamics.getOutputDimension() != 1) {
            throw new StructuralException("Output dimension of dynamics must be 1 (force)");
        }
    myAFDynamics = dynamics;

    myIntegrator = new RK45Integrator();
  }
View Full Code Here

Examples of ca.nengo.dynamics.impl.RK45Integrator

  /**
   * Makes the dynamic system
   */
  public HodgkinHuxleySpikeGenerator() {
    super(new HodgkinHuxleySystem(new float[4]), new RK45Integrator(), 0, 30f, .002f);
  }
View Full Code Here

Examples of ca.nengo.dynamics.impl.RK45Integrator

*/
public class RK45IntegratorTest extends TestCase {

  public void testIntegrate() {
    VanderPol system = new VanderPol(new float[]{.1f, .1f});
    Integrator integrator = new RK45Integrator();
    TimeSeries input = new TimeSeriesImpl(new float[]{0, 10f}, new float[][]{new float[0], new float[0]}, new Units[]{});
    TimeSeries result = integrator.integrate(system, input);
   
    assertTrue(result.getTimes().length < 60);
   
    //check results against selected hard-coded values from matlab solution ...
    InterpolatorND interpolator = new LinearInterpolatorND(result);
View Full Code Here

Examples of ca.nengo.dynamics.impl.RK45Integrator

   * Create a spike generator that follows Gruber et al.'s
   * medium-spiny striatal neuron model.
   */
  public GruberSpikeGenerator() {
    myDynamics = new GruberDynamics(ourResetPotential);
    myIntegrator = new RK45Integrator();
    myLastSpikeTime = -1;
    myMembranePotentialHistory = new TimeSeries1DImpl(new float[]{0}, new float[]{0}, Units.mV);
    mySteadyStateVmFunction = getSteadyStateVmFunction();

    myMode = SimulationMode.DEFAULT;
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.