Package ca.nengo.dynamics

Examples of ca.nengo.dynamics.DynamicalSystem


    myIntegrator = new RK45Integrator();
  }

  private BasicTermination makeTermination() {
    Units[] units = Units.uniform(Units.UNK, 1);
    DynamicalSystem myEADynamics = new SimpleLTISystem(new float[]{-1f/.005f}, MU.I(1), MU.I(1), new float[1], units) {
      private static final long serialVersionUID = 1L;

      //override to rectify excitation (can't have negative excitation to muscles)
      public float[] f(float t, float[] u) {
        u[0] = Math.abs(u[0]);
View Full Code Here


    }

    //functional test ...
    public static void main(String[] args) {
        float tau = .01f;
        DynamicalSystem dynamics = new SimpleLTISystem(new float[]{-1f/tau}, new float[][]{new float[]{1f/tau}}, MU.I(1), new float[1], new Units[]{Units.UNK});
        Integrator integrator = new EulerIntegrator(.0001f);
//      Noise noise = NoiseFactory.makeRandomNoise(1000, new GaussianPDF(0, 1));
        Noise noise = NoiseFactory.makeRandomNoise(1000, new GaussianPDF(0, 1), dynamics, integrator);
//      Noise noise = NoiseFactory.makeNullNoise(1);
//      Noise noise = NoiseFactory.makeExplicitNoise(new Function[]{new FourierFunction(1, 10, 1, -1)});
View Full Code Here

TOP

Related Classes of ca.nengo.dynamics.DynamicalSystem

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.