net.fortytwo.flow.rdf.ranking
Class NormalizedApproxVector<T,E extends Exception>
java.lang.Object
net.fortytwo.flow.rdf.ranking.NormalizedApproxVector<T,E>
- All Implemented Interfaces:
- Approximation<WeightedVector<T>,E>, WeightedVectorApproximation<T,E>
public class NormalizedApproxVector<T,E extends Exception>
- extends Object
- implements WeightedVectorApproximation<T,E>
- Author:
- Joshua Shinavier (http://fortytwo.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NormalizedApproxVector
public NormalizedApproxVector(WeightedVectorApproximation<T,E> innerVector)
currentResult
public WeightedVector<T> currentResult()
- Specified by:
currentResult in interface Approximation<WeightedVector<T>,E extends Exception>- Specified by:
currentResult in interface WeightedVectorApproximation<T,E extends Exception>
compute
public int compute(int cycles)
throws E extends Exception
- Specified by:
compute in interface Approximation<WeightedVector<T>,E extends Exception>
- Parameters:
cycles - the number of cycles available
- Returns:
- the number of cycles actually consumed
- Throws:
E - an implementation-specific exception
E extends Exception
Copyright © 2007-2014. All Rights Reserved.