|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.WeightedField
public class WeightedField
A class that contains the name of a field and a weight that should be applied to the similarity values for that field when finding documents similar to a given document.
| Constructor Summary | |
|---|---|
WeightedField(java.lang.String fieldName,
float weight)
Creates a weighted field for a given field and weight. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFieldName()
|
float |
getWeight()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeightedField(java.lang.String fieldName,
float weight)
fieldName - the name of the field to which we want to apply the weightweight - the weight that we want to apply| Method Detail |
|---|
public java.lang.String getFieldName()
public float getWeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||