public class ScoringUtils extends Object
Constructor and Description |
---|
ScoringUtils() |
Modifier and Type | Method and Description |
---|---|
static <V> org.apache.commons.collections4.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.collections4.Transformer<V,Double> |
getUniformRootPrior(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,Double> getUniformRootPrior(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(Collection<V> roots)
roots.size()
to each
element of roots
.V
- the vertex typeroots
- the vertices to be assigned nonzero scoresCopyright © 2015. All rights reserved.