Package ca.nengo.util.impl

Examples of ca.nengo.util.impl.Rectifier


                if (encodingDistribution == null) {
                    encodingDistribution = 0f;
                }
                VectorGenerator vectorGen = new RandomHypersphereVG(true, 1, encodingDistribution);
                if (encodingSign == Sign.Positive) {
                    vectorGen = new Rectifier(vectorGen, true);
                } else if (encodingSign == Sign.Negative) {
                    vectorGen = new Rectifier(vectorGen, false);
                }
                ef.setEncoderFactory(vectorGen);
            }

            if (radius==null) {
View Full Code Here


    NEFEnsembleFactory ef = new NEFEnsembleFactoryImpl() {
      private static final long serialVersionUID = 1L;
      protected void addDefaultOrigins(NEFEnsemble ensemble) {} //wait until some neurons are adjusted
    };
    ef.setEncoderFactory(new Rectifier(ef.getEncoderFactory(), true));
    ef.setEvalPointFactory(new BiasedVG(new RandomHypersphereVG(false, 0.5f, 0f), 0, excitatoryProjection ? .5f : -.5f));

//    PDF interceptPDF = excitatoryProjection ? new IndicatorPDF(-.5f, .75f) : new IndicatorPDF(-.99f, .35f);
    PDF interceptPDF = excitatoryProjection ? new IndicatorPDF(-.15f, .9f) : new IndicatorPDF(-1.2f, .1f); //was -.5f, .75f for excitatory
    PDF maxRatePDF = excitatoryProjection ? new IndicatorPDF(200f, 500f) : new IndicatorPDF(400f, 800f);
View Full Code Here

TOP

Related Classes of ca.nengo.util.impl.Rectifier

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.