org.recommender.server
Class UserInfo
java.lang.Object
|
+--org.recommender.server.CFSynchronize
|
+--org.recommender.server.UserInfo
- public class UserInfo
- extends CFSynchronize
This class implements a user's records, including his/her rartings
list, mean rating and Standard deviation.
The class also provides some flags that are used by the
cache replacement algorithm.
- Author:
- Olivier Godde
Constructor Summary |
UserInfo(int ID)
Constructor with param of only userID. |
UserInfo(int ID,
RatingArrays ratings,
float mean,
float SD)
Constructor with params of userID, ratings, mean and standard deviation. |
UserInfo(int ID,
RatingArrays ratings,
float mean,
float SD,
boolean sampling)
Constructor with params of userID, ratings, mean and standard deviation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userID
public int userID
samplingFlag
public boolean samplingFlag
userTopN
public ItemPrediction[] userTopN
UserInfo
public UserInfo(int ID)
- Constructor with param of only userID.
- Parameters:
ID
-
UserInfo
public UserInfo(int ID,
RatingArrays ratings,
float mean,
float SD)
- Constructor with params of userID, ratings, mean and standard deviation.
- Parameters:
ID
- ratings
- mean
- SD
-
UserInfo
public UserInfo(int ID,
RatingArrays ratings,
float mean,
float SD,
boolean sampling)
- Constructor with params of userID, ratings, mean and standard deviation.
- Parameters:
ID
- ratings
- mean
- SD
- sampling
-
getUseCount
public int getUseCount()
setUseCount
public void setUseCount(int useCount)
incUseCount
public void incUseCount()
decUseCount
public void decUseCount()
isReferenced
public boolean isReferenced()
setReferenced
public void setReferenced(boolean referenced)
getUserAddedRatings
public int getUserAddedRatings()
setUserAddedRatings
public void setUserAddedRatings(int userAddedRatings)
incUserAddedRatings
public void incUserAddedRatings()
decUserAddedRatings
public void decUserAddedRatings()
getUserMean
public float getUserMean()
setUserMean
public void setUserMean(float userMean)
getUserSD
public float getUserSD()
setUserSD
public void setUserSD(float userSD)
getRatings
public RatingArrays getRatings()
setRatings
public void setRatings(RatingArrays ratings)
Copyright © 2003 - Oregon State University www.orst.edu