net.fortytwo.flow.rdf.ranking
Class ApproxFairOperation<T,E extends Exception>
java.lang.Object
net.fortytwo.flow.rdf.ranking.ApproxFairOperation<T,E>
- All Implemented Interfaces:
- Approximation<WeightedVector<T>,E>, WeightedVectorApproximation<T,E>
- Direct Known Subclasses:
- ApproxIntersection, ApproxUnion
public abstract class ApproxFairOperation<T,E extends Exception>
- extends Object
- implements WeightedVectorApproximation<T,E>
- Author:
- Joshua Shinavier (http://fortytwo.net)
|
Method Summary |
int |
compute(int cycles)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
operands
protected final WeightedVectorApproximation<T,E extends Exception>[] operands
ApproxFairOperation
public ApproxFairOperation(WeightedVectorApproximation<T,E>... operands)
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.