Examples of indexOf()


Examples of org.neuroph.core.Layer.indexOf()

    Neuron winner = getClosest();
    if (winner.getOutput() == 0)
      return; // ako je vec istrenirana jedna celija, izadji

    Layer mapLayer = neuralNetwork.getLayerAt(1);
    int winnerIdx = mapLayer.indexOf(winner);
    adjustCellWeights(winner, 0);

    int cellNum = mapLayer.getNeuronsCount();
    for (int p = 0; p < cellNum; p++) {
      if (p == winnerIdx)
View Full Code Here

Examples of org.objectweb.asm.tree.InsnList.indexOf()

    // sort the group instructions according to their method index
    private void sort(InstructionGroup group) {
        final InsnList instructions = method.instructions;
        Collections.sort(group.getNodes(), new Comparator<InstructionGraphNode>() {
            public int compare(InstructionGraphNode a, InstructionGraphNode b) {
                return Integer.valueOf(instructions.indexOf(a.getInstruction()))
                        .compareTo(instructions.indexOf(b.getInstruction()));
            }
        });
    }
View Full Code Here

Examples of org.opengis.feature.simple.SimpleFeatureType.indexOf()

            sb.append(",");
        }

        //properties
        int gindex = featureType.getGeometryDescriptor() != null
                ? featureType.indexOf(featureType.getGeometryDescriptor().getLocalName())
                : -1;

        GeoJSONUtil.string("properties", sb).append(":").append("{");
        boolean attributesWritten = false;
        for (int i = 0; i < featureType.getAttributeCount(); i++) {
View Full Code Here

Examples of org.pdfbox.cos.COSArray.indexOf()

                    ArrayEntry arrayEntry = (ArrayEntry)child;
                    retval = arrayEntry.getIndex();
                }
                else
                {
                    retval = array.indexOf( (COSBase)child );
                }
            }
            else if( parent instanceof COSDictionary )
            {
                MapEntry entry = (MapEntry)child;
View Full Code Here

Examples of org.pdfclown.objects.PdfArray.indexOf()

        /*
          NOTE: This operation is necessary in order to substitute
          the previous base object with the new one within the list.
        */
        PdfArray itemsObject = items.getBaseDataObject();
        itemsObject.set(itemsObject.indexOf(oldBaseDataObject),baseDataObject);
      }
    }

    ((PdfTextString)((PdfArray)baseDataObject).get(1)).setValue(value);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionCollection.indexOf()

    {
      final RowBandingFunction instance = (RowBandingFunction) function.getInstance();
      if (dialog.performEdit(instance))
      {
        final ExpressionCollection expressionCollection = report.getExpressions();
        final int idx = expressionCollection.indexOf(function);
        expressionCollection.set(idx, instance);
        activeContext.getUndo().addChange(ActionMessages.getString("EditRowBandingAction.Text"),
            new ExpressionEditUndoEntry(idx, function, instance));
        report.fireModelLayoutChanged(report, ReportModelEvent.NODE_PROPERTIES_CHANGED, instance);
      }
View Full Code Here

Examples of org.rssowl.ui.internal.util.TreeItemAdapter.indexOf()

      Widget widget = findItem(selectedElement);
      if (widget instanceof TreeItem) {
        TreeItem item = (TreeItem) widget;
        TreeItemAdapter parent = new TreeItemAdapter(item).getParent();

        int index = parent.indexOf(item);
        minSelectedIndex = Math.min(minSelectedIndex, index);
        if (index == minSelectedIndex)
          parentOfMinSelected.setItem(parent.getItem());
      }
    }
View Full Code Here

Examples of org.sgx.yuigwt.yui.asyncqueue.AsyncQueue.indexOf()

        // All AsyncQueue instances will execute all callbacks
        // synchronously by default
        Y.AsyncQueue().defaults().timeout(-1);

        final AsyncQueue aq = Y.newAsyncQueue().add(aqItem).add(aqItem2).add(aqItem3);
        ta.set("text", "indexOf A = " + aq.indexOf("aq1"));

        EventCallback<AsyncQueueEvent> callback1 = new EventCallback<AsyncQueueEvent>() {
          @Override
          public void call(AsyncQueueEvent e) {
            console.log("Event type: " + e.type(), "", "");
View Full Code Here

Examples of org.vfny.geoserver.wms.responses.map.htmlimagemap.utils.CyclicalList.indexOf()

    }
   
    //now we just form our output array by injecting the hole vertices into place
    //we know we have to inject the hole into the main array after point P going from
    //rightMostHoleVertex around and then back to P.
    int mIndex = holePolygon.indexOf(rightMostHoleVertex);
    int injectPoint = polygonVertices.indexOf(P)+1;

   
    for (int count = mIndex; count <= mIndex + holePolygon.size(); count++)
    {
View Full Code Here

Examples of org.vietspider.token.attribute.Attributes.indexOf()

    params.add(newPair);
  }

  public String getAttribute(HTMLNode node, String name) {
    Attributes attrs = node.getAttributes();
    int idx = attrs.indexOf(name);
    if(idx < 0) return null;
    return attrs.get(idx).getValue();
  }

  public String getAttribute(Attributes attrs, String name) {
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.