/** * Returns a copy of this SynchronizedSummaryStatistics instance with the * same internal state. * * @return a copy of this */ @Override public synchronized SynchronizedSummaryStatistics copy() { SynchronizedSummaryStatistics result = new SynchronizedSummaryStatistics(); // No try-catch or advertised exception because arguments are guaranteed non-null copy(this, result); return result; }
confidences = new SynchronizedSummaryStatistics(); statistics.put(modelId, confidences); if(confidences.getN() >= minSampleSize) { confidences.addValue(entityConfidence);
/** * A copy constructor. Creates a deep-copy of the {@code original}. * * @param original the {@code SynchronizedSummaryStatistics} instance to copy * @throws NullArgumentException if original is null */ public SynchronizedSummaryStatistics(SynchronizedSummaryStatistics original) throws NullArgumentException { copy(original, this); }
double totalTimeMS = end - start; double queryTime = mQueryTimeStat.getMean(), intermRerankTime = 0, finalRerankTime = 0; mQueryTimeStat.getMean(), mQueryTimeStat.getStandardDeviation())); logger.info(String.format("Number of entries found: mean=%f std=%f", mNumRetStat.getMean(), mNumRetStat.getStandardDeviation())); mIntermRerankTimeStat.getMean(), mIntermRerankTimeStat.getStandardDeviation())); intermRerankTime = mIntermRerankTimeStat.getMean(); mFinalRerankTimeStat.getMean(), mFinalRerankTimeStat.getStandardDeviation())); finalRerankTime = mFinalRerankTimeStat.getMean();
iq, queryID, mThreadId, searchTimeMS, mAppRef.mMaxCandRet, resultsAll.length)); mAppRef.mQueryTimeStat.addValue(searchTimeMS); mAppRef.mNumRetStat.addValue(qres.mNumFound); String.format("Intermediate-feature generation & re-ranking for the query # %d queryId='%s' thread ID=%d, took %d ms", iq, queryID, mThreadId, rerankIntermTimeMS)); mAppRef.mIntermRerankTimeStat.addValue(rerankIntermTimeMS); String.format("Final-feature generation & re-ranking for the query # %d queryId='%s' thread ID=%d, final. reranking took %d ms", iq, queryID, mThreadId, rerankFinalTimeMS)); mAppRef.mFinalRerankTimeStat.addValue(rerankFinalTimeMS);
@Override public void reset(String modelId) { statistics.get(modelId).clear(); }
/** * A copy constructor. Creates a deep-copy of the {@code original}. * * @param original the {@code SynchronizedSummaryStatistics} instance to copy * @throws NullArgumentException if original is null */ public SynchronizedSummaryStatistics(SynchronizedSummaryStatistics original) throws NullArgumentException { copy(original, this); }
/** * Returns a copy of this SynchronizedSummaryStatistics instance with the * same internal state. * * @return a copy of this */ @Override public synchronized SynchronizedSummaryStatistics copy() { SynchronizedSummaryStatistics result = new SynchronizedSummaryStatistics(); // No try-catch or advertised exception because arguments are guaranteed non-null copy(this, result); return result; }
/** * A copy constructor. Creates a deep-copy of the {@code original}. * * @param original the {@code SynchronizedSummaryStatistics} instance to copy * @throws NullArgumentException if original is null */ public SynchronizedSummaryStatistics(SynchronizedSummaryStatistics original) throws NullArgumentException { copy(original, this); }
/** * Returns a copy of this SynchronizedSummaryStatistics instance with the * same internal state. * * @return a copy of this */ @Override public synchronized SynchronizedSummaryStatistics copy() { SynchronizedSummaryStatistics result = new SynchronizedSummaryStatistics(); // No try-catch or advertised exception because arguments are guaranteed non-null copy(this, result); return result; }