IncrementalPM/src/conformance/IncrementalConformanceChecker.java
private Pair<XTrace, Integer> sampleRandomTrace(XLog log, Random randNrGenerator, IncrementalConformanceChecker.SamplingMode samplingMode) {
		int indexOfPickedTrace=randNrGenerator.nextInt(log.size());
		XTrace currentTrace = log.get(indexOfPickedTrace);
		
		//if i.i.d. sampling, we add trace, once we analyze its result
		if (samplingMode == IncrementalConformanceChecker.SamplingMode.BINOMIAL) {
		}
		//if biased sampling, delete trace right away
		else if (samplingMode == IncrementalConformanceChecker.SamplingMode.HYPERGEOMETRIC) {
			log.remove(currentTrace);
		}
		return new ImmutablePair<XTrace, Integer>(currentTrace, indexOfPickedTrace);
	}
/**
	 * choose a trace at random from the log and remove it, throws NullPointerException if log is empty
	 * @param log
	 * @param randNrGenerator
	 * @return
	 */
choose a trace at random from the log and remove it, throws NullPointerException if log is empty
@param log
@param randNrGenerator
@return
choose a trace at random from the log and remove it throws NullPointerException if log is empty @param log @param randNrGenerator @return
private Pair<XTrace, Integer> sampleRandomTrace(XLog log, Random randNrGenerator, IncrementalConformanceChecker.SamplingMode samplingMode) {
		int indexOfPickedTrace=randNrGenerator.nextInt(log.size());
		XTrace currentTrace = log.get(indexOfPickedTrace);
		if (samplingMode == IncrementalConformanceChecker.SamplingMode.BINOMIAL) {
		}
		else if (samplingMode == IncrementalConformanceChecker.SamplingMode.HYPERGEOMETRIC) {
			log.remove(currentTrace);
		}
		return new ImmutablePair<XTrace, Integer>(currentTrace, indexOfPickedTrace);
	}
private Pair < XTrace , Integer > sampleRandomTrace ( XLog log , Random randNrGenerator , IncrementalConformanceChecker . SamplingMode samplingMode ) { int indexOfPickedTrace = randNrGenerator . nextInt ( log . size ( ) ) ; XTrace currentTrace = log . get ( indexOfPickedTrace ) ; if ( samplingMode == IncrementalConformanceChecker . SamplingMode . BINOMIAL ) { } else if ( samplingMode == IncrementalConformanceChecker . SamplingMode . HYPERGEOMETRIC ) { log . remove ( currentTrace ) ; } return new ImmutablePair < XTrace , Integer > ( currentTrace , indexOfPickedTrace ) ; }
choose a trace at random from the log and remove it, throws NullPointerException if log is empty
 @param log
 @param randNrGenerator
 @return
choose a trace at random from the log and remove it throws NullPointerException if log is empty @param log @param randNrGenerator @return
//if i.i.d. sampling, we add trace, once we analyze its result //if biased sampling, delete trace right away