|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttp.model.FeatureBinary
public class FeatureBinary
Class representing a feature and its frequency in binary model.
Field Summary | |
---|---|
static int |
PRESENCE
|
Constructor Summary | |
---|---|
FeatureBinary(java.lang.String feature)
Constructor of the class |
Method Summary | |
---|---|
java.lang.String |
getFeature()
Gets a word, which is represented by this feature. |
int |
getRate()
Gets a binary frequency of this feature. |
void |
setFeature(java.lang.String feature)
Sets a word, which is represented by this feature. |
void |
setRate(int rate)
Sets a binary frequency of this feature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PRESENCE
Constructor Detail |
---|
public FeatureBinary(java.lang.String feature)
feature
- a feature (word)Method Detail |
---|
public java.lang.String getFeature()
getFeature
in interface FeatureInterface
public void setFeature(java.lang.String feature)
setFeature
in interface FeatureInterface
feature
- a feature (word)public int getRate()
getRate
in interface FeatureInterface
public void setRate(int rate)
setRate
in interface FeatureInterface
rate
- value of frequency (0 or 1)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |