public class DefaultNeighborIterationStrategyProvider extends Object implements javax.inject.Provider<NeighborIterationStrategy>
SparseNeighborIterationStrategy
if the function
is sparse and BasicNeighborIterationStrategy
otherwise.ItemSimilarity.isSparse()
Constructor and Description |
---|
DefaultNeighborIterationStrategyProvider(ItemSimilarity sim)
Construct a new provider.
|
@Inject public DefaultNeighborIterationStrategyProvider(ItemSimilarity sim)
sim
- The item similarity function to use.public NeighborIterationStrategy get()
get
in interface javax.inject.Provider<NeighborIterationStrategy>