Examples of Layer


Examples of _api.alienfactory.javamappy.Layer

          } catch (NumberFormatException nfe) {
            super.throwChunkException("Cannot find Layer index, invalid chunk name :: chunkName=[" + super.getChunkName() + "]");
          }
        }
       
    Layer layer = new Layer(map.getMapHeader(), mapLayer, map.getBlocks(), map.getAnimBlocks());
   
    // make sure the layers array is large enough to accomodate the new layer
    if ((layerIndex + 1) > map.getLayers().length) {
      Layer[] layers = new Layer[layerIndex + 1];
      System.arraycopy(map.getLayers(), 0, layers, 0, map.getLayers().length);
View Full Code Here

Examples of aima.core.learning.neural.Layer

    Vector biasVector1 = new Vector(2);
    biasVector1.setValue(0, -0.48);
    biasVector1.setValue(1, -0.13);

    Layer layer1 = new Layer(weightMatrix1, biasVector1,
        new LogSigActivationFunction());

    Vector inputVector1 = new Vector(1);
    inputVector1.setValue(0, 1);

    Vector expected = new Vector(2);
    expected.setValue(0, 0.321);
    expected.setValue(1, 0.368);

    Vector result1 = layer1.feedForward(inputVector1);
    Assert.assertEquals(expected.getValue(0), result1.getValue(0), 0.001);
    Assert.assertEquals(expected.getValue(1), result1.getValue(1), 0.001);

    Matrix weightMatrix2 = new Matrix(1, 2);
    weightMatrix2.set(0, 0, 0.09);
    weightMatrix2.set(0, 1, -0.17);

    Vector biasVector2 = new Vector(1);
    biasVector2.setValue(0, 0.48);

    Layer layer2 = new Layer(weightMatrix2, biasVector2,
        new PureLinearActivationFunction());
    Vector inputVector2 = layer1.getLastActivationValues();
    Vector result2 = layer2.feedForward(inputVector2);
    Assert.assertEquals(0.446, result2.getValue(0), 0.001);
  }
View Full Code Here

Examples of chunmap.view.layer.Layer

  private static final long serialVersionUID = -1784496267356795823L;

  @Override
  protected void addLayer(MapCtrl map) {
    //String url="http://localhost:8080/chunmapService/test?SERVICE=GoogleMap";
    Layer layer = new GMLayer();
    map.getLayerCollection().add(layer);
  }
View Full Code Here

Examples of cnslab.cnsnetwork.Layer

     
      assertEquals ( 1e-9, simulatorParser.backgroundStrength, 0 );
     
      assertTrue (
        ErnstLib.equivalent (
          new Layer ( "AA", "AA", 1, 1, "exc" ),
          simulatorParser.layerStructure.getLayer ( "AA", "AA" ) ) );
     
      assertTrue (
        ErnstLib.equivalent (
          new Layer ( "BB", "BB", 1, 1, "exc" ),
          simulatorParser.layerStructure.getLayer ( "BB", "BB" ) ) );
     
      assertEquals (
        200,
        simulatorParser.layerStructure.totalNumNeurons ( ) );
View Full Code Here

Examples of com.bbn.openmap.Layer

            }
            try {
                // Create it if you do...
                Object obj = java.beans.Beans.instantiate(null, className);
                if (obj instanceof Layer) {
                    Layer l = (Layer) obj;
                    // All layers have a setProperties method, and
                    // should intialize themselves with proper
                    // settings here. If a property is not set, a
                    // default should be used, or a big, graceful
                    // complaint should be issued.
                    l.setProperties(layerName, p);
                    layers.addElement(l);
                }
            } catch (java.lang.ClassNotFoundException e) {
                System.err.println("Layer class not found: \"" + className
                        + "\"");
View Full Code Here

Examples of com.bbn.openmap.Layer

            String layerName = (String) layerNames.elementAt(i);

            // Check to see if some other ImageServer has used this
            // layer, and reuse it.
            if (instantiatedLayers != null) {
                Layer iLayer = (Layer) instantiatedLayers.get(layerName);
                if (iLayer != null) {

                    // We might want to consider adding this:
                    // iLayer.setProperties(layerName, p);

                    layers.add(iLayer);
                    if (Debug.debugging("imageserver")) {
                        Debug.output("ImageServer: adding instantiated layer /"
                                + layerName + "/");
                    }
                    continue;
                }
            }

            // Brand new layer, so instantiate it.
            String classProperty = layerName + ".class";
            String className = p.getProperty(classProperty);
            if (className == null) {
                Debug.error("Failed to locate property \"" + classProperty
                        + "\"");
                Debug.error("Skipping layer \"" + layerName + "\"");
                continue;
            }

            Object obj = ComponentFactory.create(className, layerName, p);
            if (obj instanceof Layer || obj instanceof PlugIn) {
                Layer l = null;

                if (obj instanceof PlugIn) {
                    PlugIn pi = (PlugIn) obj;
                    PlugInLayer pil = new PlugInLayer();
                    pil.setPlugIn(pi);
View Full Code Here

Examples of com.bbn.openmap.Layer

     */
    protected void createWmsLayers() {
        wmsLayerByName.clear();
        wmsLayers.clear();
        for (int i = 0; i < layers.length; i++) {
            Layer layer = layers[i];
            createWmsLayers(wmsLayerFactory.createWmsLayer(layer));
        }
    }
View Full Code Here

Examples of com.bbn.openmap.Layer

       
        for(Iterator it = parameters.queryLayerNames.iterator(); it.hasNext();){
            String queryLayerName = (String)it.next();
           
            IWmsLayer wmslayer = (IWmsLayer) wmsLayerByName.get(queryLayerName);
            Layer layer = getTopLayerByName(queryLayerName);
           
            layer.setProjection(new ProjectionEvent(this, projection));
           
            LayerFeatureInfoResponse layerResponse = wmslayer.query(parameters.x, parameters.y);
            featureInfoResponse.add(layerResponse);
        }
       
View Full Code Here

Examples of com.bbn.openmap.Layer

            break;
        }
    }

    public void cleanup() {
        Layer l = getLayer();
        if (l != null) {
            l.removeLayerStatusListener(this);
        }
        super.cleanup();
    }
View Full Code Here

Examples of com.bbn.openmap.Layer

        parseScales(prefix, props);

        // Update our target layer. If there is a current projection and this
        // layer is active, we need to pass it along.
        if (getProjection() != null) {
            Layer currentLayer = configureAppropriateLayer(getProjection().getScale());
            fireStatusUpdate(LayerStatusEvent.START_WORKING);
            currentLayer.projectionChanged(new ProjectionEvent((Object) null, getProjection()));
        }
    }
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.