Examples of update()


Examples of com.github.maven_nar.cpptasks.TargetHistoryTable.update()

            //     
            long startTime = compiledFile.lastModified() + 1;
            //
            //   update the table
            //
            table.update(new MockProcessorConfiguration(),
                    new String[]{"dummy.o"}, null);
            //
            //   commit. If "compiled" file was judged to be
            //   valid we should have a history file.
            //
View Full Code Here

Examples of com.github.pmerienne.trident.ml.classification.PAClassifier.update()

      // Init and train classifier
      PAClassifier classifier = new PAClassifier();
      double[] features;
      for (TextInstance<Boolean> instance : dataset) {
        features = featuresExtractor.extractFeatures(instance.tokens);
        classifier.update(instance.label, features);
      }

      // save them
      save(featuresExtractor, classifier);
    }
View Full Code Here

Examples of com.github.pmerienne.trident.ml.nlp.KLDClassifier.update()

  @Test
  public void testWithSmallWiki() {
    EnglishTokenizer tokenizer = new EnglishTokenizer();

    KLDClassifier kldClassifier = new KLDClassifier(2);
    kldClassifier.update(0, tokenizer.tokenize(NOSQL_WIKI));
    kldClassifier.update(0, tokenizer.tokenize(MYSQL_WIKI));
    kldClassifier.update(1, tokenizer.tokenize(LILIUM_WIKI));
    kldClassifier.update(1, tokenizer.tokenize(ROSE_WIKI));

    assertEquals(0, (int) kldClassifier.classify(tokenizer.tokenize(DATABASE_WIKI)));
View Full Code Here

Examples of com.github.pmerienne.trident.ml.stats.AdaptiveStreamFeatureStatistics.update()

    }

    // When
    AdaptiveStreamFeatureStatistics statistics = new AdaptiveStreamFeatureStatistics(1000);
    for (int i = 0; i < size; i++) {
      statistics.update(features[i]);
    }

    // Then
    assertEquals(expectedMean, statistics.getMean(), 0.3);
    assertEquals(stdDev, statistics.getStdDev(), 0.3);
View Full Code Here

Examples of com.github.pmerienne.trident.ml.stats.FixedStreamFeatureStatistics.update()

    }

    // When
    FixedStreamFeatureStatistics statistics = new FixedStreamFeatureStatistics();
    for (int i = 0; i < size; i++) {
      statistics.update(features[i]);
    }

    // Then
    assertEquals(expectedMean, statistics.getMean(), 0.1);
    assertEquals(stdDev, statistics.getStdDev(), 0.1);
View Full Code Here

Examples of com.golden.gamedev.engine.BaseClient.update()

     
      System.out.println("Start the Client...");
     
      // network loop
      while (true) {
        bsClient.update(100); // the main work
       
        // send packet to server
        // every 50 tick
        if (++sendCounter % 50 == 0) {
          bsClient.sendPacket(new AllFieldTypePacket());
View Full Code Here

Examples of com.golden.gamedev.engine.BaseServer.update()

     
      System.out.println("Waiting for clients...");
     
      // network loop
      while (true) {
        bsServer.update(100); // the main work
       
        // iterate all received packets
        BaseClient[] clients = bsServer.getReceivedPacketClients();
        for (int i = 0; i < clients.length; i++) {
          NetworkPacket[] packets = clients[i].getReceivedPackets();
View Full Code Here

Examples of com.golden.gamedev.engine.network.tcp.TCPClient.update()

    // network loop
    int i = 0;
    while (true) {
      // update client
      try {
        client.update(100);
       
      }
      catch (IOException ex) {
        ex.printStackTrace();
        System.err.println("Client disconnected.\nCaused by:\n"
View Full Code Here

Examples of com.golden.gamedev.engine.network.tcp.TCPServer.update()

    System.out.println("Server Detail: " + server.getDetail());
   
    // network loop
    while (true) {
      try {
        server.update(100);
       
      }
      catch (IOException ex) {
        ex.printStackTrace();
      }
View Full Code Here

Examples of com.google.api.gbase.client.GoogleBaseService.update()

    gbaseAttributes.addTextAttribute("event performer", "Google mashup test");
    gbaseAttributes.addUrlAttribute("performer url", "http://code.google.com/apis/gdata.html");
   
    if (event.getBaseUrl() != null) {
      // updating event
      baseService.update(event.getBaseUrl(), entry);
    } else {
      // insert event
      GoogleBaseEntry resultEntry = baseService.insert(
          FeedURLFactory.getDefault().getItemsFeedURL(),
          entry);
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.