Examples of observe()


Examples of ch.ethz.inf.vs.californium.CoapClient.observe()

   
    client.setURI(uri + "/obs-non").useNONs();
   
    System.out.println("===============\nCO02+06");
    System.out.println("---------------\nNON-GET /obs-non with Observe");
    CoapObserveRelation relation2 = client.observe(
        new CoapHandler() {
          @Override public void onLoad(CoapResponse response) {
            String content = response.getResponseText();
            System.out.println("-CO02----------");
            System.out.println(content);
View Full Code Here

Examples of com.aamend.hadoop.clustering.cluster.Cluster.observe()

                points.add(value.get().getCenter());
            }
        }

        // Increment number of observations for this cluster
        clusterTemplate.observe(obs);

        if (lastIteration) {
            if (clusterTemplate.getNum() < minObservations) {
                context.getCounter(COUNTER, COUNTER_REJECTED_CANOPY).increment(1L);
                return;
View Full Code Here

Examples of eu.mosaic_cloud.cloudlets.implementation.cloudlet.CloudletFsm.FsmCallbackCompletionTransaction.observe()

        @Override
        public final StateAndOutput<FsmState, Void> execute ()
        {
          final CloudletCallbackArguments<TContext> arguments = new CloudletCallbackArguments<TContext> (Cloudlet.this.controllerProxy);
          final CallbackCompletion<Void> completion = Cloudlet.this.callbacksProxy.initialize (Cloudlet.this.controllerContext, arguments);
          initializeCompletedTransaction.observe (completion);
          return StateAndOutput.create (FsmState.CallbacksInitializePending, null);
        }
      }.trigger ();
    }
   
View Full Code Here

Examples of eu.mosaic_cloud.cloudlets.implementation.cloudlet.CloudletFsm.FsmCallbackCompletionTransaction.observe()

        {
          Preconditions.checkState (Cloudlet.this.destroyFuture == null);
          Cloudlet.this.destroyFuture = future;
          final CloudletCallbackArguments<TContext> arguments = new CloudletCallbackArguments<TContext> (Cloudlet.this.controllerProxy);
          final CallbackCompletion<Void> completion = Cloudlet.this.callbacksProxy.destroy (Cloudlet.this.controllerContext, arguments);
          destroyCompletedTransaction.observe (completion);
          return StateAndOutput.create (FsmState.CallbacksDestroyPending, null);
        }
      }.trigger ();
    }
   
View Full Code Here

Examples of js.dom.Element.observe()

            apply(source, image);

            container.child(Title.class).text(getTitle(source));

            image.observe(UIAction.Click).to(value -> {
                select(source);
            });

            images.put(source, image);
        }
View Full Code Here

Examples of org.apache.mahout.clustering.Cluster.observe()

    int k = Integer.parseInt(key.toString());
    Cluster model = newModels[k];
    for (VectorWritable value : values) {
      // only observe real points, not the empty placeholders emitted by each mapper
      if (value.get().size() > 0) {
        model.observe(value);
      }
    }
    DirichletCluster cluster = clusterer.updateCluster(model, k);
    context.write(new Text(String.valueOf(k)), cluster);
  }
View Full Code Here

Examples of org.apache.mahout.clustering.Cluster.observe()

    int k = Integer.parseInt(key.toString());
    Cluster model = newModels[k];
    for (VectorWritable value : values) {
      // only observe real points, not the empty placeholders emitted by each mapper
      if (value.get().size() > 0) {
        model.observe(value);
      }
    }
    DirichletCluster cluster = clusterer.updateCluster(model, k);
    context.write(new Text(String.valueOf(k)), cluster);
  }
View Full Code Here

Examples of org.apache.mahout.clustering.GaussianAccumulator.observe()

   */
  private void computeStd(int cI) {
    List<VectorWritable> repPts = representativePoints.get(cI);
    GaussianAccumulator accumulator = new OnlineGaussianAccumulator();
    for (VectorWritable vw : repPts) {
      accumulator.observe(vw.get(), 1.0);
    }
    accumulator.compute();
    double d = accumulator.getAverageStd();
    stDevs.put(cI, d);
  }
View Full Code Here

Examples of org.apache.mahout.clustering.GaussianAccumulator.observe()

   */
  private void computeStd(int cI) {
    List<VectorWritable> repPts = representativePoints.get(cI);
    GaussianAccumulator accumulator = new OnlineGaussianAccumulator();
    for (VectorWritable vw : repPts) {
      accumulator.observe(vw.get());
    }
    accumulator.compute();
    double d = accumulator.getAverageStd();
    stDevs.put(cI, d);
  }
View Full Code Here

Examples of org.apache.mahout.clustering.GaussianAccumulator.observe()

   */
  private void computeStd(int cI) {
    List<VectorWritable> repPts = representativePoints.get(cI);
    GaussianAccumulator accumulator = new OnlineGaussianAccumulator();
    for (VectorWritable vw : repPts) {
      accumulator.observe(vw.get(), 1.0);
    }
    accumulator.compute();
    double d = accumulator.getAverageStd();
    stDevs.put(cI, d);
  }
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.