edu.uci.ics.jung.algorithms.scoring.util
Class ScoringUtils
java.lang.Object
edu.uci.ics.jung.algorithms.scoring.util.ScoringUtils
public class ScoringUtils
- extends Object
Methods for assigning values (to be interpreted as prior probabilities) to vertices in the context
of random-walk-based scoring algorithms.
Method Summary |
static
<V> org.apache.commons.collections15.Transformer<V,HITS.Scores> |
|
getHITSUniformRootPrior(Collection<V> roots)
Returns a Transformer that hub and authority values of 1/roots.size() to each
element of roots . |
static
<V> org.apache.commons.collections15.Transformer<V,Double> |
|
getUniformRootPrior(Collection<V> roots)
Assigns a probability of 1/roots.size() to each of the elements of roots . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScoringUtils
public ScoringUtils()
getUniformRootPrior
public static <V> org.apache.commons.collections15.Transformer<V,Double> getUniformRootPrior(Collection<V> roots)
- Assigns a probability of 1/
roots.size()
to each of the elements of roots
.
- Type Parameters:
V
- the vertex type- Parameters:
roots
- the vertices to be assigned nonzero prior probabilities
- Returns:
getHITSUniformRootPrior
public static <V> org.apache.commons.collections15.Transformer<V,HITS.Scores> getHITSUniformRootPrior(Collection<V> roots)
- Returns a Transformer that hub and authority values of 1/
roots.size()
to each
element of roots
.
- Type Parameters:
V
- the vertex type- Parameters:
roots
- the vertices to be assigned nonzero scores
- Returns:
- a Transformer that assigns uniform prior hub/authority probabilities to each root
Copyright © 2009. All Rights Reserved.