Examples of Statistics


Examples of com.wot.shared.Statistics

  private static DataPlayerInfos TransformDaoDataCommunityAccountToDataCommunityAccount(DaoDataCommunityAccount2 data) {
   
    //  build return object
    DataPlayerInfos myDataPlayerInfos = new DataPlayerInfos();
    //
    Statistics statistics = new Statistics();
    AllStatistics allStatistics = new AllStatistics();
    myDataPlayerInfos.setStatistics(statistics);
    myDataPlayerInfos.getStatistics().setAllStatistics(allStatistics);
   
    if(data.getStats().getBattle_avg_performanceCalc() != null)
View Full Code Here

Examples of de.torstennahm.statistics.Statistics

  @Override
  public IntegrationResult integrate(Function function, StopCondition condition, List<Visualizer> visualizers) {
    int dimension = function.inputDimension();
    double[] x = new double[dimension];
    final Statistics statistics = new Statistics();
   
    IntegrationResult result = new IntegrationResult() {
      public double value() {
        return statistics.average();
      }
 
      public double errorEstimate() {
        if (statistics.n() >= MIN_EVALUATIONS) {
          return (statistics.sigma() / Math.sqrt(statistics.n() - 1)) *
               T_INTERVAL * SAFETY_FACTOR;
        } else {
          return Double.NaN;
        }
      }
 
      public long functionCalls() {
        return (long)statistics.n();
      }
     
      public Set<IntegrationInfo> supplementalInfo() {
        return new HashSet<IntegrationInfo>();
      }
    };
   
    Visualizers.submitToList(visualizers, new Integrand(function));
    Visualizers.submitToList(visualizers, new StartIntegration());
   
    int count = 0;
    while (! condition.stop(result)) {
      for (int j = 0; j < dimension; j++) {
        x[j] = random.nextDouble();
      }
     
      statistics.add(function.sEvaluate(x));
     
      if (++count == 100) {
        Visualizers.submitToList(visualizers, new NewResult(result));
        count = 0;
      }
View Full Code Here

Examples of gwt.tools.server.dao.ParallelUrlRetriever.Statistics

   * com.magnetica.client.MagneticaService#run(com.magnetica.shared.data.Request
   * )
   */
  @Override public ServerResult<EntityType> run(Request<EntityType> request, Result<EntityType> result) {
    Log.trace(this, "MagenticaService.run: request", request);
    Statistics initialUrlRetrieverStatistics = ParallelUrlRetriever.getStatistics();
    com.magnetica.shared.racks.ModuleRack.Statistics initialRackStatistics = ModuleRack.getStatistics();
    gwt.tools.shared.CommonCache.Statistics initialCacheStatistics = gwt.tools.shared.CommonCache.getStatistics();
    //    return new ServerResult(null, true);
    long start = System.currentTimeMillis();
    if (request.hasTimeout()) {
View Full Code Here

Examples of marauroa.server.game.Statistics

  private void createBeanForStatistics() {
    // Adding a Bean for statistical access using jmanager
    try {
      MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
      // Unique identification of MBeans
      Statistics statBean = Statistics.getStatistics();
      // Uniquely identify the MBeans and register them with the platform
      // MBeanServer
      ObjectName statName = new ObjectName("marauroad:name=Statistics");
      mbs.registerMBean(statBean, statName);
      logger.debug("Statistics bean registered.");
View Full Code Here

Examples of net.grinder.script.Statistics

      final Logger externalLogger = new ExternalLogger(m_logger, m_threadContexts);

      m_sleeper = new SleeperImplementation(m_times.getTimeAuthority(), externalLogger, properties.getDouble(
          "grinder.sleepTimeFactor", 1.0d), properties.getDouble("grinder.sleepTimeVariation", 0.2d));

      final Statistics scriptStatistics = new ScriptStatisticsImplementation(m_threadContexts,
          m_statisticsServices, m_consoleSender);

      final ThreadStopper threadStopper = new ThreadStopper() {
        @Override
        public boolean stopThread(final int threadNumber) {
View Full Code Here

Examples of net.sf.ehcache.Statistics

    if (cache != null) {
      System.out.printf(" cache= %s%n", cache.toString());
      System.out.printf(" cache.size= %d%n", cache.getSize());
      System.out.printf(" cache.memorySize= %d%n", cache.getMemoryStoreSize());
      Statistics stats = cache.getStatistics();
      System.out.printf(" stats= %s%n", stats.toString());
    }
  }
View Full Code Here

Examples of net.sourceforge.aprog.tools.MathTools.Statistics

  private Double[] keys;
 
  public EqualizingAdaptiveQuantizer(final int bitCount) {
    this.bitCount = bitCount;
    this.data = new TreeMap<Double, Double>();
    this.statistics = new Statistics();
  }
View Full Code Here

Examples of net.tomp2p.p2p.Statistics

        futureGet1.awaitUninterruptibly();
        System.out.println("peer[0] got " + futureGet1.data().object());

        // countermeasure - statistics, pick not closest, but random peer that has the data - freshness vs. load
        // also, check distances!
        Statistics statistics = new Statistics(peers[0].peerBean().peerMap());
        System.out.println("average distance: "+statistics.avgGap());
        for (Entry<PeerAddress, Map<Number640, Data>> entry : futureGet1.rawData().entrySet()) {
            System.out.print("got from (6)" + entry.getKey());
            System.out.print(" distance: "+key1.xor(entry.getKey().peerId()).doubleValue());
            System.out.println(" "+entry.getValue());
        }
View Full Code Here

Examples of oop13.space.model.Statistics

  public void testChangesInModel() {
    IModel model = new Model();
    model.initIndividuals();
    model.initAchievements();
    Ship spaceShip = model.getShip();
    Statistics statistics = model.getStatistics();
   
    //Testing adding and resetting statistics
    statistics.setLevelsCompleted(3);
    statistics.setMotherShipsKilled(5);
    statistics.setScore(300);
    statistics.setAliensKilled(100);
    Assert.assertTrue(statistics.getLevelsCompleted() == 3);
    Assert.assertTrue(statistics.getMotherShipsKilled() == 5);
    Assert.assertTrue(statistics.getScore() == 300);
    Assert.assertTrue(statistics.getAliensKilled() == 100);
    statistics.resetStatistics();
    for (Field f : statistics.getClass().getDeclaredFields()) {
      f.setAccessible(true);
      try {
        Assert.assertTrue(f.getInt(statistics) == 0);
      } catch (IllegalArgumentException e) {
        System.err.println(GameStrings.ILLEGAL_ARG_ERROR);
View Full Code Here

Examples of org.antlr.works.stats.Statistics

        XJSystem.setSystemProperties();
        XJApplication.setPropertiesPath(PROPERTIES_PATH);
        XJAlert.setDefaultAlertIcon(IconManager.shared().getIconApplication64x64());
       
        if(args.length >= 1 && args[0].equals("-stats")) {
            XJApplication.run(new Statistics(), args, "Statistics");
        } else {
            sc = new SplashScreen();

            try {
                SwingUtilities.invokeAndWait(new Runnable() {
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.