public abstract class ObjectFloatUnitVector extends ObjectFloatVector
ObjectFloatUnitVectorL2
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
data
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Modifier | Constructor and Description |
---|---|
protected |
ObjectFloatUnitVector(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of ObjectFloatUnitVector loaded from binary input buffer.
|
|
ObjectFloatUnitVector(java.io.BufferedReader stream)
Creates a new instance of ObjectFloatUnitVector from text stream.
|
|
ObjectFloatUnitVector(float[] data)
Creates a new instance of ObjectFloatUnitVector.
|
|
ObjectFloatUnitVector(int dimension)
Creates a new instance of ObjectFloatUnitVector with randomly generated content data.
|
binarySerialize, cloneRandomlyModify, convertFloatVector, dataEquals, dataHashCode, getBinarySize, getDimensionality, getMinMaxForEveryCoord, getMinMaxOverCoords, getMinMaxOverCoords, getSize, getVectorData, getVectorDataDimension, getVectorDataItem, getVectorDataItemFloat, parseFloatVector, randomData, toString, translateToUnitCube, translateToUnitCube, writeData, writeFloatVector
clearSurplusData, clone, clone, create, create, createMetaDistancesHolder, excludeUsingPrecompDist, getDistance, getDistance, getDistance, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceImpl, 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 ObjectFloatUnitVector(float[] data) throws java.lang.IllegalArgumentException
data
- the data content of the new objectjava.lang.IllegalArgumentException
- if the given array contains float that are not within [0,1] intervalpublic ObjectFloatUnitVector(int dimension)
dimension
- number of dimensions to generatepublic ObjectFloatUnitVector(java.io.BufferedReader stream) throws java.io.EOFException, java.io.IOException, java.lang.NumberFormatException
stream
- the stream from which to read lines of textjava.io.EOFException
- if the end-of-file of the given stream is reachedjava.io.IOException
- if there was an I/O error during reading from the streamjava.lang.NumberFormatException
- if a line read from the stream does not consist of comma-separated or space-separated numbersprotected ObjectFloatUnitVector(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
input
- the buffer to read the ObjectFloatVector fromserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error reading from the buffer