@Deprecated public class ObjectFeatureFloatWClustersL2 extends ObjectFeatureFloatWClusters
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
clusterid, data
ori, scl, x, y
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Modifier | Constructor and Description |
---|---|
protected |
ObjectFeatureFloatWClustersL2(BinaryInput input,
BinarySerializator serializator)
Deprecated.
Creates a new instance of ObjectIntVector loaded from binary input buffer.
|
|
ObjectFeatureFloatWClustersL2(java.io.BufferedReader stream)
Deprecated.
Creates a new instance of object from stream
|
|
ObjectFeatureFloatWClustersL2(float x,
float y,
float ori,
float scl,
float[] data,
double clusterid)
Deprecated.
Creates a new instance of object
|
Modifier and Type | Method and Description |
---|---|
float |
getClustersDistance(LocalAbstractObject obj)
Deprecated.
|
protected float |
getDistanceImpl(LocalAbstractObject obj,
float distThreshold)
Deprecated.
Metric function
Implements city-block distance measure (so-called L1 metric)
|
binarySerialize, dataEquals, dataHashCode, getBinarySize, getClusterID, getDimensionality, getSize, getVectorData, 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 ObjectFeatureFloatWClustersL2(float x, float y, float ori, float scl, float[] data, double clusterid)
public ObjectFeatureFloatWClustersL2(java.io.BufferedReader stream) throws java.io.IOException, java.lang.NumberFormatException
java.io.IOException
java.lang.NumberFormatException
protected ObjectFeatureFloatWClustersL2(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 distancepublic float getClustersDistance(LocalAbstractObject obj)