Examples of RunningStats


Examples of org.cspoker.ai.bots.util.RunningStats

            if (modelCreated(runner.getBot(i).getId())) {
              file.write("\t-1000");
            } else
              file.write("\t1000");             
            file.write("\t"+getAccuracy(runner.getBot(i).getId()));
            RunningStats profit = runner.getBot(i).getProfit();
            int smallBet = runner.getConfig().getSmallBet();
            double mean = profit.getMean() / smallBet;
            double stdDevMean = profit.getEVStdDev()/ smallBet;
            file.write("\t"+mean+"\t"+stdDevMean);
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
View Full Code Here

Examples of org.cspoker.ai.bots.util.RunningStats

      if (startTime > 0) {
        logger.info("deal #" + deals + " at " + reportInterval * 1000.0
            / (nowTime - startTime) + " games/s (overall speed: " +
            deals * 1000.0/ (nowTime - overallStartTime)+ " games/s)");
        for (int i = 0; i < runner.nbPlayersPerGame; i++) {
          RunningStats profit = runner.getBot(i).getProfit();
          int smallBet = runner.getConfig().getSmallBet();
          double avgProfit = (profit.getMean() / smallBet);
          double stdDev = (profit.getEVStdDev()/ smallBet);
          double prob = Gaussian.bigPhi(avgProfit/stdDev);
          logger.info("(" + runner.getBotFactory(i) + " wins "
              + (float)avgProfit + " sb/game) "
              + " +- "+(float)stdDev+" ("+(float)prob+"% profitable)");
        }
View Full Code Here

Examples of org.cspoker.ai.bots.util.RunningStats

    if (deals % reportInterval == 0) {
      long nowTime = System.currentTimeMillis();
      if (startTime > 0) {
        logger.info("deal #" + deals + " at " + reportInterval * 1000.0
            / (nowTime - startTime) + " games/s");
        RunningStats profit = profitInfo.getProfit();
        int smallBet = profitInfo.getTableConfiguration().getSmallBet();
        double avgProfit = (profit.getMean() / smallBet);
        double stdDev = (profit.getEVStdDev()/ smallBet);
        double prob = Gaussian.bigPhi(avgProfit/stdDev);
        logger.info("(" + profitInfo.getBotName() + " wins "
            + (float)avgProfit + " sb/game) "
            + " +- "+(float)stdDev+" ("+(float)prob+"% profitable)");
      }
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.