Examples of increment()


Examples of org.apache.commons.math3.stat.descriptive.rank.Min.increment()

        for (int i = 0; i < 10; i++) {
            final int nextInt = r.nextInt(100000000);
            secondMoment.increment(nextInt);
            sum.increment(nextInt);
            sumsq.increment(nextInt);
            min.increment(nextInt);
            max.increment(nextInt);
            sumLog.increment(nextInt);
        }

        testStorelessUnivariateStatistic(secondMoment, 7.513432791665536E15);
View Full Code Here

Examples of org.apache.commons.math3.stat.descriptive.summary.Sum.increment()

            for (int i = 0; i < data.length; i++) {
                double val = data[i];

                // within category
                num++;
                sum.increment(val);
                sumsq.increment(val);

                // for all categories
                totnum++;
                totsum.increment(val);
View Full Code Here

Examples of org.apache.commons.math3.stat.descriptive.summary.SumOfLogs.increment()

            secondMoment.increment(nextInt);
            sum.increment(nextInt);
            sumsq.increment(nextInt);
            min.increment(nextInt);
            max.increment(nextInt);
            sumLog.increment(nextInt);
        }

        testStorelessUnivariateStatistic(secondMoment, 7.513432791665536E15);
        testStorelessUnivariateStatistic(sum, 6.01312177E8);
        testStorelessUnivariateStatistic(sumsq, 4.3671066212513456E16);
View Full Code Here

Examples of org.apache.commons.math3.stat.descriptive.summary.SumOfSquares.increment()

                double val = data[i];

                // within category
                num++;
                sum.increment(val);
                sumsq.increment(val);

                // for all categories
                totnum++;
                totsum.increment(val);
                totsumsq.increment(val);
View Full Code Here

Examples of org.apache.curator.framework.recipes.atomic.DistributedAtomicInteger.increment()

        } catch (Exception e) {
            throw new LumifyException("failed to initialize counter for " + userId);
        }

        try {
            AtomicValue<Integer> count = direction == Direction.INCREMENT ? distributedAtomicInteger.increment() : distributedAtomicInteger.decrement();
            if (count.succeeded()) {
                return count.postValue();
            } else {
                throw new LumifyException("failed to " + direction + " counter for " + userId);
            }
View Full Code Here

Examples of org.apache.directory.server.core.api.SearchRequestContainer.increment()

        LOG.debug( "Message Sent : {}", searchResultReference );
        SearchRequestContainer searchRequestContainer = session.getSearchRequest( searchResultReference.getMessageId() );
       
        if ( searchRequestContainer != null )
        {
            searchRequestContainer.increment();
        }
       
        //System.out.println( "SearchResultReference : " + searchRequestContainer );
    }
}
View Full Code Here

Examples of org.apache.excalibur.instrument.CounterInstrument.increment()

        ci.setInstrumentProxy( proxy );
        proxy.activate();

        assertEquals( "The instrument should br active.", ci.isActive(), true );
       
        ci.increment( 1 );
       
        assertEquals( "The expected count was incorrect.", proxy.getValue(), 1 );
    }
}
View Full Code Here

Examples of org.apache.excalibur.instrument.manager.CounterInstrumentListener.increment()

            long time = System.currentTimeMillis();
            for ( int i = 0; i < listeners.length; i++ )
            {
                CounterInstrumentListener listener =
                    (CounterInstrumentListener)listeners[i];
                listener.increment( getName(), count, time );
            }
        }
    }
   
    /**
 
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HTable.increment()

      }

      try {
        HTable table = getTable(tincrement.getTable());
        Increment inc = ThriftUtilities.incrementFromThrift(tincrement);
        table.increment(inc);
      } catch (IOException e) {
        LOG.warn(e.getMessage(), e);
        throw new IOError(e.getMessage());
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HTableInterface.increment()

  @Override
  public TResult increment(ByteBuffer table, TIncrement increment) throws TIOError, TException {
    HTableInterface htable = getTable(table);
    try {
      return resultFromHBase(htable.increment(incrementFromThrift(increment)));
    } catch (IOException e) {
      throw getTIOError(e);
    } finally {
      closeTable(htable);
    }
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.