public class ObjectStringEditDistSleep extends ObjectStringEditDist
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 |
---|
ObjectStringEditDistSleep()
Creates a new instance of randomly generated object
|
ObjectStringEditDistSleep(java.io.BufferedReader stream)
Creates a new instance of Object from stream
|
ObjectStringEditDistSleep(int minLength,
int maxLength)
Creates a new instance of Object random generated
with minimal length equal to minLength and maximal
length equal to maxLength
|
ObjectStringEditDistSleep(java.lang.String text)
Creates a new instance of object
|
Modifier and Type | Method and Description |
---|---|
protected float |
getDistanceImpl(LocalAbstractObject obj,
float distThreshold)
Metric function
Implements euclidean distance measure (so-called L2 metric)
|
getDistanceLowerBoundImpl, getDistanceUpperBoundImpl, getChangeWeight, getInsertDeleteWeight
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 ObjectStringEditDistSleep(java.lang.String text)
public ObjectStringEditDistSleep()
public ObjectStringEditDistSleep(int minLength, int maxLength)
public ObjectStringEditDistSleep(java.io.BufferedReader stream) throws java.io.IOException
java.io.IOException
protected float getDistanceImpl(LocalAbstractObject obj, float distThreshold)
getDistanceImpl
in class ObjectStringEditDist
obj
- the object to compute distance todistThreshold
- the threshold value on the distance