Package ca.nengo.math

Examples of ca.nengo.math.ApproximatorFactory


            Integer dimensions = (Integer) prop.getValue(pDim);

            /*
             * Advanced properties, these may not necessarily be configued, so
             */
            ApproximatorFactory approxFactory = (ApproximatorFactory) prop.getValue(pApproximator);
            NodeFactory nodeFactory = (NodeFactory) prop.getValue(pNodeFactory);
            Sign encodingSign = (Sign) prop.getValue(pEncodingSign);
            Float encodingDistribution = (Float) prop.getValue(pEncodingDistribution);
            Float radius = (Float) prop.getValue(pRadius);
            Float noise = (Float) prop.getValue(pNoise);

            if (nodeFactory != null) {
                ef.setNodeFactory(nodeFactory);
            }

            if (approxFactory != null) {
                ef.setApproximatorFactory(approxFactory);
            }
            if (noise != null) {
                ApproximatorFactory f=ef.getApproximatorFactory();
                if (f instanceof WeightedCostApproximator.Factory) {
                    ((WeightedCostApproximator.Factory)f).setNoise(noise);
                }
            }

View Full Code Here

TOP

Related Classes of ca.nengo.math.ApproximatorFactory

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.