public class ObjectFeatureSetOrdpres 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 |
---|
ObjectFeatureSetOrdpres()
Creates a new instance of ObjectFeatureSetOrdpres with empty list of objects.
|
ObjectFeatureSetOrdpres(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of ObjectFeatureSetOrdpress loaded from binary input.
|
ObjectFeatureSetOrdpres(java.io.BufferedReader stream)
Creates a new instance of ObjectFeatureSetOrdpres from a text stream.
|
ObjectFeatureSetOrdpres(java.io.BufferedReader stream,
float epsilon,
int limit1,
int limit2,
int nof)
Creates a new instance of ObjectFeatureSetOrdpress from a text stream
overriding default parameters
|
ObjectFeatureSetOrdpres(java.io.File file)
Creates a new instance of ObjectFeatureSetOrdpress from a file
|
ObjectFeatureSetOrdpres(java.io.File file,
float epsilon,
int limit1,
int limit2)
Creates a new instance of ObjectFeatureSetOrdpress from a file with
overriding default parameters
|
ObjectFeatureSetOrdpres(java.io.File file,
float epsilon,
int limit1,
int limit2,
int nof)
Creates a new instance of ObjectFeatureSetOrdpress from a file with
overriding default parameters
|
Modifier and Type | Method and Description |
---|---|
protected float |
getDistanceImpl(LocalAbstractObject obj,
float distThreshold)
The actual implementation of the distance function.
|
int |
getLimit1()
Returns limit1 paramter
|
int |
getLimit2()
Returns limit2 paramter
|
ObjectRectangle2D |
getMaxMinCoords()
Returns bounding rect of spatial feature information
|
int |
getQueryFeaturesCount()
Returns limit2 getQueryFeaturesCount
|
float |
getQueryFeatureSearchRadius()
Returns limit2 queryFeatureSearchRadius
|
int |
ordSpearman(java.lang.Integer[] minearray,
java.lang.Integer[] theirarray,
int[] mapping) |
java.util.LinkedHashMap<java.lang.Integer,java.lang.Float> |
sortHashMapByValues(java.util.LinkedHashMap<java.lang.Integer,java.lang.Float> passedMap,
boolean ascending) |
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 ObjectFeatureSetOrdpres()
public ObjectFeatureSetOrdpres(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 ObjectFeatureSetOrdpres(java.io.BufferedReader stream, float epsilon, int limit1, int limit2, int nof) throws java.io.IOException
stream
- the text stream to read an object fromepsilon
- queryFeatureSearchRadius parameterlimit1
- limit1 parameterlimit2
- limit2 parametersnof
- queryFeaturesCount parameterjava.io.IOException
- when an error appears during reading from given stream,
EOFException is returned if end of the given stream is reached.public ObjectFeatureSetOrdpres(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 ObjectFeatureSetOrdpres(java.io.File file, float epsilon, int limit1, int limit2) throws java.io.IOException
file
- text file to read an object fromepsilon
- queryFeatureSearchRadius parameterlimit1
- limit1 parameterlimit2
- limit2 parametersjava.io.IOException
- when an error appears during reading from given stream,
EOFException is returned if end of the given stream is reached.public ObjectFeatureSetOrdpres(java.io.File file, float epsilon, int limit1, int limit2, int nof) throws java.io.IOException
file
- text file to read an object fromepsilon
- queryFeatureSearchRadius parameterlimit1
- limit1 parameterlimit2
- limit2 parametersnof
- queryFeaturesCount parameterjava.io.IOException
- when an error appears during reading from given stream,
EOFException is returned if end of the given stream is reached.public ObjectFeatureSetOrdpres(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
input
- the input to read the ObjectFeatureSet fromserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error reading from the bufferpublic int getLimit1()
public int getLimit2()
public float getQueryFeatureSearchRadius()
public int getQueryFeaturesCount()
public ObjectRectangle2D getMaxMinCoords()
protected float getDistanceImpl(LocalAbstractObject obj, float distThreshold)
getDistanceImpl
in class LocalAbstractObject
obj
- the object to compute distance todistThreshold
- the threshold value on the distanceLocalAbstractObject.getDistance(messif.objects.LocalAbstractObject)
public int ordSpearman(java.lang.Integer[] minearray, java.lang.Integer[] theirarray, int[] mapping)
public java.util.LinkedHashMap<java.lang.Integer,java.lang.Float> sortHashMapByValues(java.util.LinkedHashMap<java.lang.Integer,java.lang.Float> passedMap, boolean ascending)