public class ScoringUtils
extends java.lang.Object
| Constructor and Description |
|---|
ScoringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <V> org.apache.commons.collections4.Transformer<V,HITS.Scores> |
getHITSUniformRootPrior(java.util.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.collections4.Transformer<V,java.lang.Double> |
getUniformRootPrior(java.util.Collection<V> roots)
Assigns a probability of 1/
roots.size() to each of the elements of roots. |
public static <V> org.apache.commons.collections4.Transformer<V,java.lang.Double> getUniformRootPrior(java.util.Collection<V> roots)
roots.size() to each of the elements of roots.V - the vertex typeroots - the vertices to be assigned nonzero prior probabilitiespublic static <V> org.apache.commons.collections4.Transformer<V,HITS.Scores> getHITSUniformRootPrior(java.util.Collection<V> roots)
roots.size() to each
element of roots.V - the vertex typeroots - the vertices to be assigned nonzero scores