public class ObjectStringFINLP_Dist extends ObjectString
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
text
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Constructor and Description |
---|
ObjectStringFINLP_Dist()
Creates a new instance of Object random generated
|
ObjectStringFINLP_Dist(java.io.BufferedReader stream)
Creates a new instance of Object from stream
|
ObjectStringFINLP_Dist(java.lang.String text)
Creates a new instance of ObjectStringFINLP_Dist
|
Modifier and Type | Method and Description |
---|---|
protected float |
getDistanceImpl(LocalAbstractObject obj,
float distThreshold)
The actual implementation of the metric function (see
LocalAbstractObject.getDistance(messif.objects.LocalAbstractObject) for full explanation). |
protected float |
getDistanceLowerBoundImpl(LocalAbstractObject obj,
int accuracy)
Implementation that actually computes the lower bound on the metric distance.
|
protected float |
getDistanceUpperBoundImpl(LocalAbstractObject obj,
int accuracy)
Implementation that actually computes the upper bound on the metric distance.
|
binarySerialize, cloneRandomlyModify, dataEquals, dataHashCode, generateRandom, getBinarySize, getObjectKey, getSize, getStringData, getStringLength, toString, writeData
clearSurplusData, clone, clone, create, create, createMetaDistancesHolder, excludeUsingPrecompDist, getDistance, getDistance, getDistance, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceLowerBound, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceUpperBound, 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, getObjectLocatorURI, setObjectKey
public ObjectStringFINLP_Dist(java.lang.String text)
public ObjectStringFINLP_Dist()
public ObjectStringFINLP_Dist(java.io.BufferedReader stream) throws java.io.IOException
java.io.IOException
protected float getDistanceImpl(LocalAbstractObject obj, float distThreshold)
ObjectString
LocalAbstractObject.getDistance(messif.objects.LocalAbstractObject)
for full explanation).
The implementation should not increment distanceComputations statistics.
Implements a trivial distance, so that the ObjectString can be used directly.getDistanceImpl
in class ObjectString
obj
- the object to compute distance todistThreshold
- the threshold value on the distanceprotected float getDistanceLowerBoundImpl(LocalAbstractObject obj, int accuracy)
LocalAbstractObject
getDistanceLowerBoundImpl
in class LocalAbstractObject
obj
- the object to compute lower-bound distance toaccuracy
- the level of precision to use for lower-boundobj
protected float getDistanceUpperBoundImpl(LocalAbstractObject obj, int accuracy)
LocalAbstractObject
getDistanceUpperBoundImpl
in class LocalAbstractObject
obj
- the object to compute upper-bound distance toaccuracy
- the level of precision to use for upper-boundobj