Package ca.nengo.dynamics

Examples of ca.nengo.dynamics.LinearSystem


    float baseTauPSC = baseTermination.getTau();
    EulerIntegrator integrator = new EulerIntegrator(Math.min(interneuronTauPSC, baseTauPSC) / 10f);

    float scale = 1 / interneuronTauPSC; //output scaling to make impulse integral = 1
    LinearSystem interneuronDynamics = new SimpleLTISystem(
        new float[]{-1f/interneuronTauPSC},
        new float[][]{new float[]{1f}},
        new float[][]{new float[]{scale}},
        new float[]{0f},
        new Units[]{Units.UNK}
    );

    String biasName = baseTermination.getName()+BIAS_SUFFIX;
    String interName = baseTermination.getName()+INTERNEURON_SUFFIX;

    BiasTermination biasTermination = null;
    try {
      LinearSystem baseDynamics = (LinearSystem) baseTermination.getDynamics().clone();
      biasTermination = new BiasTermination(this, biasName, baseTermination.getName(), baseDynamics, integrator, biasEncoders, false);
    } catch (CloneNotSupportedException e) {
      throw new StructuralException("Can't clone dynamics for bias termination", e);
    }
    BiasTermination interneuronTermination = new BiasTermination(this, interName, baseTermination.getName(), interneuronDynamics, integrator, biasEncoders, true);
View Full Code Here


            throw new StructuralException("The ensemble already contains a termination named " + name);
        }

        float scale = 1 / tauPSC; //output scaling to make impulse integral = 1

        LinearSystem dynamics = new SimpleLTISystem(
                new float[]{-1f/tauPSC},
                new float[][]{new float[]{1f}},
                new float[][]{new float[]{scale}},
                new float[]{0f},
                new Units[]{Units.UNK}
View Full Code Here

TOP

Related Classes of ca.nengo.dynamics.LinearSystem

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.