Package ca.nengo.model.impl

Examples of ca.nengo.model.impl.LinearExponentialTermination


  }

  public Node make(String name) throws StructuralException {
    GruberSpikeGenerator generator = new GruberSpikeGenerator();
    LinearSynapticIntegrator integrator = new LinearSynapticIntegrator(.001f, Units.uAcm2);
    LinearExponentialTermination dopamineTermination
      = (LinearExponentialTermination) integrator.addTermination(DOPAMINE, new float[]{1}, .05f, true);

    float scale = myScalePDF.sample()[0];
//    float scale = 3;
    float bias = myBiasPDF.sample()[0];
View Full Code Here


  protected void setUp() throws Exception {
    super.setUp();
   
    myNodeTerminations = new Termination[10];
    for (int i = 0; i < myNodeTerminations.length; i++) {
      myNodeTerminations[i] = new LinearExponentialTermination(null, ""+i, new float[]{1}, ourTau);
    }
   
    myEnsembleTermination = new EnsembleTermination(null, "test", myNodeTerminations);
  }
View Full Code Here

        NEFEnsembleFactoryImpl ef = new NEFEnsembleFactoryImpl();
        NEFEnsembleImpl c = (NEFEnsembleImpl)ef.make("c", 10, 1);

        LinearExponentialTermination[] nodeterms = new LinearExponentialTermination[10];
        for(int i = 0; i < nodeterms.length; i++) {
            nodeterms[i] = new LinearExponentialTermination(new SpikingNeuron(null, null, 0.0f, 0.0f, null), null, transform[i], 0.0f);
        }

        PlasticEnsembleTermination term = new PESTermination(c, null, nodeterms);
        float[][] rettransform = term.getTransform();
View Full Code Here

        NEFEnsembleFactoryImpl ef = new NEFEnsembleFactoryImpl();
        NEFEnsembleImpl c = (NEFEnsembleImpl)ef.make("c", 10, 1);

        LinearExponentialTermination[] nodeterms = new LinearExponentialTermination[10];
        for(int i = 0; i < nodeterms.length; i++) {
            nodeterms[i] = new LinearExponentialTermination(new SpikingNeuron(null, null, 0.0f, 0.0f, null), null, transform[i], 0.0f);
        }

        PlasticEnsembleTermination term = new PESTermination(c, null, nodeterms);
        term.setTransform(newtransform, true);
View Full Code Here

  private static float update(Collection<LinearExponentialTermination> terminations, boolean spikes, float intTime, float decayTime) {
    float result = 0f;

    Iterator<LinearExponentialTermination> it = terminations.iterator();
    while (it.hasNext()) {
      LinearExponentialTermination t = it.next();
      float current = t.updateCurrent(spikes, intTime, decayTime);
      if (!t.getModulatory()) {
                result += current;
            }
    }

    return result;
View Full Code Here

  public Termination addTermination(String name, float[] weights, float tauPSC, boolean modulatory) throws StructuralException {
    if (myTerminations.containsKey(name)) {
      throw new StructuralException("This SynapticIntegrator already has a Termination named " + name);
    }

    LinearExponentialTermination result = new LinearExponentialTermination(myNode, name, weights, tauPSC);
    result.setModulatory(modulatory);
    myTerminations.put(name, result);

    return result;
  }
View Full Code Here

TOP

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

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.