Package ca.nengo.model

Examples of ca.nengo.model.PlasticNodeTermination


     */
    public float[][] getTransform() {
        Termination[] terms = this.getNodeTerminations();
        float[][] transform = new float[terms.length][];
        for (int postIx = 0; postIx < terms.length; postIx++) {
            PlasticNodeTermination pnt = (PlasticNodeTermination) terms[postIx];
            transform[postIx] = pnt.getWeights();
        }

        return transform;
    }
View Full Code Here


     *   to set the weight vectors on each PlasticNodeTermination within.
     */
    public void setTransform(float[][] transform, boolean save) {
        Termination[] terms = this.getNodeTerminations();
        for(int postIx = 0; postIx < terms.length; postIx++) {
            PlasticNodeTermination pnt = (PlasticNodeTermination) terms[postIx];
            pnt.setWeights(transform[postIx], save);
        }
    }
View Full Code Here

     * @param end Row in transformation matrix to end modifications
     */
    public void modifyTransform(float[][] change, boolean save, int start, int end) {
        Termination[] terms = this.getNodeTerminations();
        for(int postIx = start; postIx < end; postIx++) {
            PlasticNodeTermination pnt = (PlasticNodeTermination) terms[postIx];
            pnt.modifyWeights(change[postIx-start], save);
        }
    }
View Full Code Here

     * @see ca.nengo.model.impl.EnsembleTermination#getInput()
     */
    @Override
    public InstantaneousOutput getInput() {
        Termination[] terms = this.getNodeTerminations();
        PlasticNodeTermination pnt = (PlasticNodeTermination) terms[0];

        return pnt.getInput();
    }
View Full Code Here

     */
    public float[] getOutputs() {
        Termination[] terms = this.getNodeTerminations();
        float[] currents = new float[terms.length];
        for (int i = 0; i < terms.length; i++) {
            PlasticNodeTermination pnt = (PlasticNodeTermination) terms[i];
            currents[i] = pnt.getOutput();
        }

        return currents;
    }
View Full Code Here

TOP

Related Classes of ca.nengo.model.PlasticNodeTermination

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.