public class ObjectFeatureLongL2 extends ObjectFeatureLong 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 |
ObjectFeatureLongL2(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of ObjectIntVector loaded from binary input buffer.
|
|
ObjectFeatureLongL2(java.io.BufferedReader stream)
Creates a new instance of object from stream
|
|
ObjectFeatureLongL2(float x,
float y,
float ori,
float scl,
long[] data)
Creates a new instance of object
|
Modifier and Type | Method and Description |
---|---|
protected float |
getDistanceImpl(LocalAbstractObject obj,
float distThreshold)
Metric function
Implements city-block distance measure (so-called L1 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 ObjectFeatureLongL2(float x, float y, float ori, float scl, long[] data)
public ObjectFeatureLongL2(java.io.BufferedReader stream) throws java.io.IOException, java.lang.NumberFormatException
java.io.IOException
java.lang.NumberFormatException
protected ObjectFeatureLongL2(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 ObjectFeatureLong
obj
- the object to compute distance todistThreshold
- the threshold value on the distance