public class Feature extends java.lang.Object implements IFeature, java.lang.Comparable<IFeature>, java.util.Comparator<IFeature>, java.io.Serializable
Constructor and Description |
---|
Feature(java.lang.String feature) |
Feature(java.lang.String feature,
double weight) |
Modifier and Type | Method and Description |
---|---|
int |
compare(IFeature o1,
IFeature o2) |
int |
compareTo(IFeature feature) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPattern() |
double |
getWeight() |
int |
hashCode()
Hash code for Pattern
|
void |
setValue(double weight) |
java.lang.String |
toString()
Return weighted fingerprint
|
public Feature(java.lang.String feature, double weight)
feature
- weight
- public Feature(java.lang.String feature)
feature
- public boolean equals(java.lang.Object obj)
public int hashCode()
IFeature
public java.lang.String toString()
public java.lang.String getPattern()
getPattern
in interface IFeature
public double getWeight()
public int compareTo(IFeature feature)
compareTo
in interface java.lang.Comparable<IFeature>
public int compare(IFeature o1, IFeature o2)
compare
in interface java.util.Comparator<IFeature>