public class ObjectFeatureQuantizedOneOfManyDist extends ObjectFeatureQuantized
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
keys, QUANTIZED_FEATURE_KEY_SPLIT_CHARACTER
ori, scl, x, y
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Constructor and Description |
---|
ObjectFeatureQuantizedOneOfManyDist() |
ObjectFeatureQuantizedOneOfManyDist(BinaryInput input,
BinarySerializator serializator) |
ObjectFeatureQuantizedOneOfManyDist(java.io.BufferedReader stream) |
ObjectFeatureQuantizedOneOfManyDist(float x,
float y,
float ori,
float scl) |
ObjectFeatureQuantizedOneOfManyDist(float x,
float y,
float ori,
float scl,
long[] keys) |
Modifier and Type | Method and Description |
---|---|
protected float |
getDistanceImpl(LocalAbstractObject obj,
float distThreshold)
Metric function implemented as testing equality of at least one pair of keys.
|
addKey, binarySerialize, dataEquals, dataHashCode, dataQuantizedEquals, getBinarySize, getKeys, getSize, getStringData, setKeys, toString, writeData
cloneRandomlyModify, getOrientation, getScale, getX, getY, setOri, setScl, setX, setY
clearSurplusData, clone, clone, create, create, createMetaDistancesHolder, excludeUsingPrecompDist, getDistance, getDistance, getDistance, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceLowerBound, getDistanceLowerBoundImpl, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceUpperBound, getDistanceUpperBoundImpl, getFieldsForNames, getMaxDistance, getNormDistance, getPrecomputedDistance, getPrecomputedDistance, getRandomChar, getRandomNormal, chainDestroy, chainFilter, includeUsingPrecompDist, isDistanceCompatible, parseObjectComment, peekNextChar, readAttributesFromStream, readObjectComments, readObjectCommentsWithoutData, unchainFilter, write, write, writeAttributesToStream, writeObjectComment
clone, getLocatorURI, getNoDataObject, getObjectKey, getObjectKey, getObjectLocatorURI, setObjectKey
public ObjectFeatureQuantizedOneOfManyDist()
public ObjectFeatureQuantizedOneOfManyDist(float x, float y, float ori, float scl)
public ObjectFeatureQuantizedOneOfManyDist(float x, float y, float ori, float scl, long[] keys)
public ObjectFeatureQuantizedOneOfManyDist(java.io.BufferedReader stream) throws java.io.IOException, java.lang.NumberFormatException
java.io.IOException
java.lang.NumberFormatException
public ObjectFeatureQuantizedOneOfManyDist(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
java.io.IOException
protected float getDistanceImpl(LocalAbstractObject obj, float distThreshold)
getDistanceImpl
in class ObjectFeatureQuantized
obj
- the object to compute distance todistThreshold
- the threshold value on the distance1
if at least one pair of keys between this and the passed object is equal, 0
otherwise.