public interface LireFeature extends FeatureVector
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getByteArrayRepresentation()
Returns a compact byte[] based representation of the feature vector.
|
double |
getDistance(LireFeature feature)
The distance function for this type of feature
|
java.lang.String |
getFeatureName()
Gives a descriptive name of the feature, i.e. a name to show up in benchmarks, menus, UIs, etc.
|
java.lang.String |
getFieldName()
Returns the preferred field name for indexing.
|
void |
setByteArrayRepresentation(byte[] featureData)
Sets the feature vector values based on the byte[] data.
|
void |
setByteArrayRepresentation(byte[] featureData,
int offset,
int length)
Sets the feature vector values based on the byte[] data.
|
getFeatureVectorjava.lang.String getFeatureName()
java.lang.String getFieldName()
byte[] getByteArrayRepresentation()
setByteArrayRepresentation(byte[])void setByteArrayRepresentation(byte[] featureData)
getByteArrayRepresentation()
to generate a compatible byte[] array.featureData - the byte[] data.getByteArrayRepresentation()void setByteArrayRepresentation(byte[] featureData,
int offset,
int length)
getByteArrayRepresentation()
to generate a compatible byte[] array.featureData - the byte[] array containing the data.offset - the offset, i.e. where the feature vector starts.length - the length of the data representing the feature vector.getByteArrayRepresentation()double getDistance(LireFeature feature)
feature - the feature vector to compare the current instance to.