Examples of elementAt()


Examples of sizzle.parser.syntaxtree.NodeSequence.elementAt()

      final List<String> operators = new ArrayList<String>();
      final List<String> operands = new ArrayList<String>();

      for (final Node node : n.f1.nodes) {
        final NodeSequence nodeSequence = (NodeSequence) node;
        operators.add(((NodeToken) ((NodeChoice) nodeSequence.elementAt(0)).choice).tokenImage);
        operands.add(nodeSequence.elementAt(1).accept(this, argu));
      }

      st.setAttribute("operators", operators);
      st.setAttribute("operands", operands);
View Full Code Here

Examples of systole.domain.signals.Segment.elementAt()

        } else {
            minorSegment = firstSegment;
            majorSegment = SecondSegment;
        }

        while (((majorSegment.size() > intersection) && (minorSegment.size() > intersection)) && (majorSegment.elementAt(intersection).doubleValue() > minorSegment.elementAt(intersection).doubleValue())) {
            intersection++;
        }

        return intersection;
    }
View Full Code Here

Examples of test.list.types.Modules.elementAt()

      list = list.insert(factory.makeModule_Default("m" + i));
    }

    for (int i = 0; i < list.getLength(); i++) {
      Module m = factory.makeModule_Default("m" + (list.getLength() - i - 1));
      testAssert(list.elementAt(i).equals(m), "list element at " + i);
      testAssert(list.getModuleAt(i).equals(m), "typed list element at " + i);
    }
  }

  private void testAppend() {
View Full Code Here

Examples of test.list.types.Separated.elementAt()

  private void testSeparatedElementAt() {
    Separated triple =
      factory.SeparatedFromString("[\"m0\",l(\" \"),\"sep\",l(\" \"),\"m1\",l(\" \"),\"sep\",l(\" \"),\"m2\"]");

    for (int i = 0; i < 3; i++) {
      Module m = (Module) triple.elementAt(i);
      Module ref = factory.makeModule_Default("m" + i);
      testAssert(m.isEqual(ref), "elementAt " + i);

      m = triple.getModuleAt(i);
      testAssert(m.isEqual(ref), "getModuleAt " + i);
View Full Code Here

Examples of tools.util.EZArrayList.elementAt()

    //tok = encode(ups);
    EZArrayList uv = new EZArrayList(new StringTokenizer(ups,","));
      String upstr = null;
      for (int ct = 0;ct < uv.size();ct++){
      upstr = uv.elementAt(ct).toString();
      updatelist.add(parseUpdate(upstr));

       
      }
 
View Full Code Here

Examples of weka.core.FastVector.elementAt()

      for (int i=0; i<numClassifiers; i++) {
  RemoveWithValues classFilter = new RemoveWithValues();
  classFilter.setAttributeIndex("" + (insts.classIndex() + 1));
  classFilter.setModifyHeader(true);
  classFilter.setInvertSelection(true);
  classFilter.setNominalIndicesArr((int[])pairs.elementAt(i));
  Instances tempInstances = new Instances(insts, 0);
  tempInstances.setClassIndex(-1);
  classFilter.setInputFormat(tempInstances);
  newInsts = Filter.useFilter(insts, classFilter);
  if (newInsts.numInstances() > 0) {
View Full Code Here

Examples of weka.core.FastVector.elementAt()

    Instances temp_trainHeader = null;
    int[] temp_ignoreAtts = null;
   
    if (o != null) {
      for (int i = 0; i < o.size(); i++) {
  Object temp = o.elementAt(i);
  if (temp instanceof Clusterer) {
    temp_clusterer = (Clusterer)temp;
  } else if (temp instanceof Instances) { // training header
    temp_trainHeader = (Instances)temp;
  } else if (temp instanceof int[]) { // ignored attributes
View Full Code Here

Examples of xbird.util.collections.IntStack.elementAt()

            if(oi >= otherPtnlen) {
                return false;
            }
            final int verifyType = verifyTypes.elementAt(vi);
            if((verifyType & MATCH) == MATCH) {
                final int otherType = otherTypes.elementAt(oi);
                if((otherType & MATCH) != MATCH) {
                    throw new IllegalArgumentException("Comparing other pattern must be an AbstractPath"
                            + otherTypes.toString());
                }
                if(verifyType != otherType) {
View Full Code Here

Examples of xbird.util.collections.ints.IntStack.elementAt()

            if(oi >= otherPtnlen) {
                return false;
            }
            final int verifyType = verifyTypes.elementAt(vi);
            if((verifyType & MATCH) == MATCH) {
                final int otherType = otherTypes.elementAt(oi);
                if((otherType & MATCH) != MATCH) {
                    throw new IllegalArgumentException("Comparing other pattern must be an AbstractPath"
                            + otherTypes.toString());
                }
                if(verifyType != otherType) {
View Full Code Here
TOP
Copyright © 2015 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.