CFEngine API

org.recommender.server
Class ItemPrediction

java.lang.Object
  |
  +--org.recommender.server.ItemPrediction
All Implemented Interfaces:
java.io.Serializable

public class ItemPrediction
extends java.lang.Object
implements java.io.Serializable

Describes the Prediction info for the CF Engine - userID, itemID, and predicted rating.

Author:
Olivier Godde
See Also:
Serialized Form

Constructor Summary
ItemPrediction(int userID, int itemID, float pred)
          Constructor.
 
Method Summary
 int getItemID()
          Accessor, return itemID.
 float getPrediction()
          Accessor, return prediction value.
 int getUserID()
          Accessor, return userID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemPrediction

public ItemPrediction(int userID,
                      int itemID,
                      float pred)
Constructor.

Parameters:
userID -
itemID -
pred -
Method Detail

getUserID

public int getUserID()
Accessor, return userID.

Returns:
userID

getItemID

public int getItemID()
Accessor, return itemID.

Returns:
itemID

getPrediction

public float getPrediction()
Accessor, return prediction value.

Returns:
rating

CFEngine API

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