public class ObjectFeatureFloatL2 extends ObjectFeatureFloat implements BinarySerializable
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
data
ori, scl, x, y
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Modifier | Constructor and Description |
---|---|
protected |
ObjectFeatureFloatL2(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of ObjectIntVector loaded from binary input buffer.
|
|
ObjectFeatureFloatL2(java.io.BufferedReader stream)
Creates a new instance of object from stream
|
|
ObjectFeatureFloatL2(float x,
float y,
float ori,
float scl,
float[] data)
Creates a new instance of object
|
Modifier and Type | Method and Description |
---|---|
protected float |
getDistanceImpl(LocalAbstractObject obj,
float distThreshold)
Metric function
Implements Euclidean distance (L2 metric).
|
binarySerialize, dataEquals, dataHashCode, getBinarySize, getDimensionality, getSize, getVectorData, getVectorDataDimension, getVectorDataItem, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
binarySerialize, getBinarySize
public ObjectFeatureFloatL2(float x, float y, float ori, float scl, float[] data)
public ObjectFeatureFloatL2(java.io.BufferedReader stream) throws java.io.IOException, java.lang.NumberFormatException
java.io.IOException
java.lang.NumberFormatException
protected ObjectFeatureFloatL2(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
input
- the buffer to read the ObjectIntVector fromserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error reading from the bufferprotected float getDistanceImpl(LocalAbstractObject obj, float distThreshold)
getDistanceImpl
in class LocalAbstractObject
obj
- the object to compute distance todistThreshold
- the threshold value on the distanceLocalAbstractObject.MAX_DISTANCE
is returned.