CFEngine API

org.recommender.algorithms
Class ItemRatingPair

java.lang.Object
  |
  +--org.recommender.algorithms.ItemRatingPair

public class ItemRatingPair
extends java.lang.Object

Contains Ratings for the same movie for 1) the active user and 2) the neighbor.

Author:
Irwin Yoon

Constructor Summary
ItemRatingPair(ItemRating activeuser, ItemRating neighbor)
          Constructor with both activeUser and neighbor are availble.
 
Method Summary
 ItemRating getActiveUserRating()
          Accessor, return activeUser
 ItemRating getNeighborRating()
          Accessor, return neighbor(rating).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemRatingPair

public ItemRatingPair(ItemRating activeuser,
                      ItemRating neighbor)
Constructor with both activeUser and neighbor are availble.

Parameters:
activeuser -
neighbor -
Method Detail

getActiveUserRating

public ItemRating getActiveUserRating()
Accessor, return activeUser

Returns:
activeUser

getNeighborRating

public ItemRating getNeighborRating()
Accessor, return neighbor(rating).

Returns:
neighbor

CFEngine API

Copyright © 2003 - Oregon State University www.orst.edu