public Integer next() { return _iter.next(); }
public Object next() { return wrap(it.next()); }
private int highestCommonPhaseNumber(TIntHashSet phaseSet) { int hcpn = -1; // Trove iterators cannot use for() constructs TIntIterator i = phaseSet.iterator(); while (i.hasNext()) { int phase = i.next(); hcpn = phase > hcpn ? phase : hcpn; } return hcpn; }
public TIntDoubleHashMap getTable(double[][] utilities) { TIntDoubleHashMap rank = new TIntDoubleHashMap( (int) (testSize + testSize * 0.25), (float) 0.75); for (int docId = 0; docId < testSize; docId++) { double sum = 0.0; for (TIntIterator it = categoriesFilter.iterator(); it.hasNext(); ) { int catId = it.next(); if (docCategoriesFilter[docId].contains(catId)) { sum += utilities[docId][catMap.get(catId)]; } } rank.put(docId, sum); } return rank; }
int n = 0; for (TIntIterator it = categoriesFilter.iterator(); it.hasNext(); ) { catMap.put(it.next(), n); n++; double[] gainsFN = new double[numOfCategories]; for (TIntIterator it = categoriesFilter.iterator(); it.hasNext(); ) { int catId = it.next(); int currCat = catMap.get(catId); gainsFP[currCat] = gainFPweight * gain.FP(contingencies[currCat]);
int catId = it.next(); int currCat = catMap.get(catId); ContingencyTable contingency = evaluation
TIntDoubleHashMap currGainsFN = new TIntDoubleHashMap(); for (TIntIterator it = categoriesFilter.iterator(); it.hasNext(); ) { int catId = it.next(); ContingencyTable newContingency = newEvaluation.getCategoryContingencyTable((short) catId); ContingencyTable oldContingency = oldEvaluation.getCategoryContingencyTable((short) catId);
key = iterator.next();
key = iterator.next();
key = iterator.next();