net.fortytwo.flow.rdf.ranking
Class NormalizedApproxVector<T,E extends Exception>

java.lang.Object
  extended by 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)

Constructor Summary
NormalizedApproxVector(WeightedVectorApproximation<T,E> innerVector)
           
 
Method Summary
 int compute(int cycles)
           
 WeightedVector<T> currentResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalizedApproxVector

public NormalizedApproxVector(WeightedVectorApproximation<T,E> innerVector)
Method Detail

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.