public class ObjectFeatureSetSumOfSimilar extends ObjectFeatureSet
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
objects, QUANTIZED_FEATURES_SPLIT_CHARACTER
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Constructor and Description |
---|
ObjectFeatureSetSumOfSimilar()
Creates a new ObjectFeatureSetSumOfSimilar with empty list of objects and a~default threshold
|
ObjectFeatureSetSumOfSimilar(BinaryInput input,
BinarySerializator serializator) |
ObjectFeatureSetSumOfSimilar(java.io.BufferedReader stream)
Creates a new instance of ObjectFeatureSetSumOfSimilar from a text stream.
|
ObjectFeatureSetSumOfSimilar(java.io.BufferedReader stream,
float equalityThreshold)
Creates a new instance of ObjectFeatureSetSumOfSimilar from a text stream and sets the threshold.
|
ObjectFeatureSetSumOfSimilar(java.io.File file)
Creates a new instance of ObjectFeatureSetSumOfSimilar from a file
|
ObjectFeatureSetSumOfSimilar(java.io.File file,
float equalityThreshold)
Creates a new instance of ObjectFeatureSetSumOfSimilar from a file and sets equality threshold
|
ObjectFeatureSetSumOfSimilar(ObjectFeatureSet superSet,
float minX,
float maxX,
float minY,
float maxY) |
Modifier and Type | Method and Description |
---|---|
float |
getDistanceImpl(LocalAbstractObject o,
float distThreshold)
The actual implementation of the distance function
|
float |
getThreshold()
Returns the equality threshold
|
void |
setParameters(float equalityThreshold)
Sets the equality threshold
|
addObject, binarySerialize, clearSurplusData, clone, clone, cloneRandomlyModify, containsParameter, dataEquals, dataHashCode, filterFeatures, getBinarySize, getObject, getObjectCount, getParameter, getParameter, getParameter, getParameterCount, getParameterMap, getParameterNames, getRequiredParameter, getRequiredParameter, getSaveObjectsClass, getSize, getStringData, iterator, readObject, readObject, toString, writeData
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 ObjectFeatureSetSumOfSimilar()
public ObjectFeatureSetSumOfSimilar(java.io.BufferedReader stream) throws java.io.IOException
stream
- the text stream to read an object fromjava.io.IOException
- when an error appears during reading from given stream,
EOFException is returned if end of the given stream is reached.public ObjectFeatureSetSumOfSimilar(java.io.BufferedReader stream, float equalityThreshold) throws java.io.IOException
stream
- the text stream to read an object fromequalityThreshold
- new equality thresholdjava.io.IOException
- when an error appears during reading from given stream,
EOFException is returned if end of the given stream is reached.public ObjectFeatureSetSumOfSimilar(java.io.File file) throws java.io.IOException
file
- text file to read an object fromjava.io.IOException
- when an error appears during reading from given stream,
EOFException is returned if end of the given stream is reached.public ObjectFeatureSetSumOfSimilar(java.io.File file, float equalityThreshold) throws java.io.IOException
file
- text file to read an object fromequalityThreshold
- new equality thresholdjava.io.IOException
- when an error appears during reading from given stream,
EOFException is returned if end of the given stream is reached.public ObjectFeatureSetSumOfSimilar(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
java.io.IOException
public ObjectFeatureSetSumOfSimilar(ObjectFeatureSet superSet, float minX, float maxX, float minY, float maxY)
public void setParameters(float equalityThreshold)
equalityThreshold
- public float getThreshold()
public float getDistanceImpl(LocalAbstractObject o, float distThreshold)
getDistanceImpl
in class LocalAbstractObject
o
- the object to compute distance todistThreshold
- the threshold value on the distance (ignored)LocalAbstractObject.getDistance(messif.objects.LocalAbstractObject)