Package ca.nengo.model.impl

Examples of ca.nengo.model.impl.NetworkImpl.addProjection()


        .getTermination("C"));
    net.addProjection(A.getOrigin(NEFEnsemble.X), rule1b
        .getTermination("A"));
    net.addProjection(rule1a.getOrigin("OR"), rule1b
        .getTermination("B or C"));
    net
        .addProjection(D.getOrigin(NEFEnsemble.X), rule2
            .getTermination("D"));

    output.addDecodedTermination("rule1", new float[][] {
        new float[] { .4f }, new float[] { .3f }, new float[] { .2f },
View Full Code Here


        new float[] { .1f }, new float[] { 0f } }, .005f, false);
    output.addDecodedTermination("rule2", new float[][] {
        new float[] { 0f }, new float[] { .1f }, new float[] { .2f },
        new float[] { .3f }, new float[] { .4f } }, .005f, false);

    net.addProjection(rule1b.getOrigin("AND"), output
        .getTermination("rule1"));
    net.addProjection(rule2.getOrigin(NEFEnsemble.X), output
        .getTermination("rule2"));

    float neg = -.3f;
View Full Code Here

        new float[] { 0f }, new float[] { .1f }, new float[] { .2f },
        new float[] { .3f }, new float[] { .4f } }, .005f, false);

    net.addProjection(rule1b.getOrigin("AND"), output
        .getTermination("rule1"));
    net.addProjection(rule2.getOrigin(NEFEnsemble.X), output
        .getTermination("rule2"));

    float neg = -.3f;
    float pos = .9f;
    float[][] m = new float[][] { new float[] { pos, neg, neg, neg, neg },
View Full Code Here

    Function[] clipped = new Function[] { new Clip(5, 0, 0f, 1f),
        new Clip(5, 1, 0f, 1f), new Clip(5, 2, 0f, 1f),
        new Clip(5, 3, 0f, 1f), new Clip(5, 4, 0f, 1f) };
    output.addDecodedOrigin("recurrent", clipped, Neuron.AXON);

    net.addProjection(output.getOrigin("recurrent"), output
        .getTermination("recurrent"));

    /*
     * Add probes
     */
 
View Full Code Here

    Termination interm = integrator.addDecodedTermination("input",
        new float[][] { new float[] { tau } }, tau, false);
    // Termination interm = integrator.addDecodedTermination("input", new
    // float[][]{new float[]{1f}}, tau);
    network.addProjection(input.getOrigin(FunctionInput.ORIGIN_NAME), interm);

    Termination fbterm = integrator.addDecodedTermination("feedback",
        new float[][] { new float[] { 1f } }, tau, false);
    network.addProjection(integrator.getOrigin(NEFEnsemble.X), fbterm);
View Full Code Here

    // float[][]{new float[]{1f}}, tau);
    network.addProjection(input.getOrigin(FunctionInput.ORIGIN_NAME), interm);

    Termination fbterm = integrator.addDecodedTermination("feedback",
        new float[][] { new float[] { 1f } }, tau, false);
    network.addProjection(integrator.getOrigin(NEFEnsemble.X), fbterm);

    // System.out.println("Network creation: " + (System.currentTimeMillis()
    // - start));
    return network;
  }
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.