|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.tss.um.stereotyping.StereotypingAlgorithm
public class StereotypingAlgorithm
The realizes Stereotyping Algorithm, matching a user to one of known stereotypes. More precisely, a It measures a distance between user-specified characteristics and these appearing in stereotypes to find the best matching stereotype. Then opinions states in the selected stereotype are copied to the user profile. More details about the algorithm can be found in [1,2,3].
Defaults importance weights for each measure in demographic data are given.
Field Summary | |
---|---|
static double |
AGE_IMPORTANCE_WEIGHT
Importance weight of age measure. |
static double |
DRESS_IMPORTANCE_WEIGHT
Importance weight of dress measure. |
static double |
PROFESSION_IMPORTANCE_WEIGHT
Importance weight of profession measure. |
static double |
UNKNOWN_PROBABILITY
|
static double |
WEALTH_IMPORTANCE_WEIGHT
Importance weight of wealth measure. |
Constructor Summary | |
---|---|
StereotypingAlgorithm(OntModel mUM,
OntModel mStereotypesDB,
OntModel mProfilesDB,
Map weights)
|
Method Summary | |
---|---|
void |
initializeUserProfile(UserProfile u)
Initialize the given user profile by use of this stereotyping algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double AGE_IMPORTANCE_WEIGHT
Age
,
Constant Field Valuespublic static final double WEALTH_IMPORTANCE_WEIGHT
Wealth
,
Constant Field Valuespublic static final double DRESS_IMPORTANCE_WEIGHT
Dress
,
Constant Field Valuespublic static final double PROFESSION_IMPORTANCE_WEIGHT
Profession
,
Constant Field Valuespublic static final double UNKNOWN_PROBABILITY
Constructor Detail |
---|
public StereotypingAlgorithm(OntModel mUM, OntModel mStereotypesDB, OntModel mProfilesDB, Map weights)
mStereotypesDB
- mProfilesDB
- weights
- Method Detail |
---|
public void initializeUserProfile(UserProfile u)
u
- to be profile which is to be initialized; must contain
pre-defined UserProfileData, which will be use as a base for
the choice of the closest stereotype.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |