com.planetj.taste.correlation
Interface ItemCorrelation

All Superinterfaces:
Refreshable
All Known Implementing Classes:
GenericItemCorrelation, PearsonCorrelation

public interface ItemCorrelation
extends Refreshable

Implementations of this interface define a notion of itemCorrelation between two Items. Implementations should return values in the range -1.0 to 1.0, with 1.0 representing perfect correlation.

Author:
Sean Owen
See Also:
UserCorrelation

Method Summary
 double itemCorrelation(Item item1, Item item2)
          Returns the "itemCorrelation", or degree of similarity, of two Items, based on the preferences that Users have expressed for the items.
 
Methods inherited from interface com.planetj.taste.common.Refreshable
refresh
 

Method Detail

itemCorrelation

double itemCorrelation(Item item1,
                       Item item2)
                       throws TasteException

Returns the "itemCorrelation", or degree of similarity, of two Items, based on the preferences that Users have expressed for the items.

Parameters:
item1 - first item
item2 - second item
Returns:
itemCorrelation between the Items
Throws:
TasteException - if an error occurs while accessing the data