|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--iglu.ir.AbstractVectorCreator
Implements some of the functionality of the vector creator and provides a convienence method for making produced vectors conform to the user's limitations on them.
| Field Summary | |
private TermVector |
dictionary
|
private boolean |
linearlyScale
|
private int |
maxSize
|
private boolean |
normalize
|
| Constructor Summary | |
AbstractVectorCreator()
|
|
| Method Summary | |
protected void |
cleanUp(TermVector candidate)
Alter a vector to conform to the settings made here. |
void |
setDictionary(TermVector dict)
Set a dictionary controlling the vocabulary allowed in this vector. |
void |
setLinearlyScale(boolean scale)
Whether or not all returned vectors should be linearly scaled. |
void |
setMaxSize(int n)
All returned vectors should be no longer than n |
void |
setNormalize(boolean normalize)
Whether or not all vectors should be normalized. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface iglu.ir.VectorCreator |
getVector |
| Field Detail |
private TermVector dictionary
private boolean linearlyScale
private boolean normalize
private int maxSize
| Constructor Detail |
public AbstractVectorCreator()
| Method Detail |
public void setDictionary(TermVector dict)
setDictionary in interface VectorCreatorpublic void setLinearlyScale(boolean scale)
VectorCreator
setLinearlyScale in interface VectorCreatorpublic void setNormalize(boolean normalize)
VectorCreator
setNormalize in interface VectorCreatorpublic void setMaxSize(int n)
VectorCreatorn
setMaxSize in interface VectorCreatorprotected void cleanUp(TermVector candidate)
candidate - a TermVector value
TermVector value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||