Examples of addValue()


Examples of vg.userInterface.attributePanel.components.data.AttributeRow.addValue()

                value.getShower().setYellowShow();
              }
              break;
            }
          }
          value.addValue(bufAttr.getValue());
        } else {
          VisualGraph.log.printError("[" + this.getClass().getName() + ".buildPanel]" + " Error in attribute panel. Attribute name or attribute value = null(Vertex)");
        }
      }
    }
View Full Code Here

Examples of vg.userInterface.filter.FilterTableRow.addValue()

          value = data.get(bufAttr.getName());
          if(value == null) {
            value = new FilterTableRow(bufAttr.getName(), true, "V", new HashMap<String, Boolean>());
            data.put(bufAttr.getName(), value);
          }
          value.addValue(bufAttr.getValue(), true);
        } else {
          VisualGraph.log.printError("[" + this.getClass().getName() + ".buildPanel]" + " [BAD] Error in filter panel. Attribute name or attribute value = null(Vertex)");
        }
      }
    }
View Full Code Here

Examples of weka.classifiers.bayes.net.estimate.DiscreteEstimatorBayes.addValue()

      for (int i = 0; i < nCardinality; i++) {
        DiscreteEstimatorBayes d = (DiscreteEstimatorBayes) distributions[nBase + iNode][i];
        for (int iValue = 0; iValue < nValues; iValue++) {
          String sWeight = st.nextToken();
          d.addValue(iValue, new Double(sWeight).doubleValue());
        }
      }
      if (mode == EXECUTE) {
        m_nEvidence.insertElementAt(-1, nBase + iNode);
        m_fMarginP.insertElementAt(new double[getCardinality(nBase + iNode)], nBase + iNode);
View Full Code Here

Examples of weka.estimators.DiscreteEstimator.addValue()

      // if no DiscreteEstimator is present in the map, create one
      if (df == null) {
  df = new DiscreteEstimator(instances.numClasses(), 0);
      }
      df.addValue(instance.classValue(), instance.weight()); // update
      m_estimatedDistributions.put(c, df); // put back in map
    }

    // Create the attributes for m_baseMin and m_baseMax.
    // These are identical to those of m_train, except that the
View Full Code Here

Examples of weka.estimators.UnivariateDensityEstimator.addValue()

      // Set the number of bins appropriately
      ((UnivariateEqualFrequencyHistogramEstimator)e).setNumBins(getNumBins());

      // Initialize boundaries of equal frequency estimator
      for (int i = 0; i < m_OriginalTargetValues.length; i++) {
        e.addValue(m_OriginalTargetValues[i], 1.0);
      }
     
      // Construct estimator, then initialize statistics, so that only boundaries will be kept
      ((UnivariateEqualFrequencyHistogramEstimator)e).initializeStatistics();
View Full Code Here

Examples of writer2latex.util.CSVList.addValue()

            ldp.append("% Unhandled or unsupported graphics:").nl().append("%");
        }
        ldp.append("\\includegraphics");

        CSVList options = new CSVList(',');
        if (sWidth!=null) { options.addValue("width="+sWidth); }
        if (sHeight!=null) { options.addValue("height="+sHeight); }
        if (!options.isEmpty()) {
            ldp.append("[").append(options.toString()).append("]");
        }
View Full Code Here

Examples of xbird.storage.index.BIndexFile.addValue()

        StopWatch sw1 = new StopWatch("[BFileUniq] Index Construction of " + REPEAT);
        for(int i = 0; i < REPEAT; i++) {
            long v = random.nextLong();
            byte[] b = Primitives.toBytes(v);
            Value k = new Value(b);
            bfile.addValue(k, b);
            list.add(b);
        }
        System.err.println(sw1);

        bfile.flush(true, true);
View Full Code Here

Examples of xbird.storage.index.BTree.addValue()

        StopWatch sw1 = new StopWatch("[BplusTreeUniq] Index Construction of " + REPEAT);
        for(int i = 0; i < REPEAT; i++) {
            long v = random.nextLong();
            byte[] b = Primitives.toBytes(v);
            Value k = new Value(b);
            Assert.assertTrue(btree.addValue(k, v) == -1);
            list.add(b);
        }
        System.err.println(sw1);

        btree.flush(true, true);
View Full Code Here

Examples of xbird.xquery.expr.constructor.AttributeConstructor.addValue()

            case QName:
            case XmlCommentStartForElementContent:
            case ProcessingInstructionStartForElementContent:
            case StartTagOpen:
                valueExpr = parseExpr();
                ac.addValue(valueExpr);
                break;
            default:
                jj_la1[177] = jj_gen;
                ;
        }
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.