messif.objects.impl
Class ObjectFloatUnitVector

java.lang.Object
  extended by messif.objects.UniqueID
      extended by messif.objects.AbstractObject
          extended by messif.objects.LocalAbstractObject
              extended by messif.objects.impl.ObjectFloatVector
                  extended by messif.objects.impl.ObjectFloatUnitVector
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<UniqueID>, BinarySerializable, Clearable
Direct Known Subclasses:
ObjectFloatUnitVectorL2

public abstract class ObjectFloatUnitVector
extends ObjectFloatVector

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class messif.objects.LocalAbstractObject
LocalAbstractObject.DataEqualObject
 
Field Summary
 
Fields inherited from class messif.objects.impl.ObjectFloatVector
data
 
Fields inherited from class messif.objects.LocalAbstractObject
counterDistanceComputations, counterLowerBoundDistanceComputations, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, UNKNOWN_DISTANCE
 
Constructor Summary
protected ObjectFloatUnitVector(BinaryInput input, BinarySerializator serializator)
          Creates a new instance of ObjectFloatUnitVector loaded from binary input buffer.
  ObjectFloatUnitVector(java.io.BufferedReader stream)
           
  ObjectFloatUnitVector(float[] data)
           
  ObjectFloatUnitVector(int dimension)
           
 
Method Summary
 
Methods inherited from class messif.objects.impl.ObjectFloatVector
binarySerialize, cloneRandomlyModify, dataEquals, dataHashCode, getBinarySize, getDimensionality, getMinMaxForEveryCoord, getMinMaxOverCoords, getMinMaxOverCoords, getSize, getVectorData, toString, translateToUnitCube, translateToUnitCube, writeData
 
Methods inherited from class messif.objects.LocalAbstractObject
clearSurplusData, clone, clone, create, create, createMetaDistancesHolder, excludeUsingPrecompDist, getDistance, getDistance, getDistance, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceImpl, getDistanceLowerBound, getDistanceLowerBoundImpl, getDistanceUpperBound, getDistanceUpperBoundImpl, getMaxDistance, getNormDistance, getRandomChar, getRandomNormal, chainDestroy, chainFilter, includeUsingPrecompDist, readObjectComments, unchainFilter, write, write
 
Methods inherited from class messif.objects.AbstractObject
clone, getLocatorURI, getNoDataObject, getObjectID, getObjectKey, setObjectKey
 
Methods inherited from class messif.objects.UniqueID
compareTo, equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectFloatUnitVector

public ObjectFloatUnitVector(java.io.BufferedReader stream)
                      throws java.io.IOException,
                             java.lang.NumberFormatException
Throws:
java.io.IOException
java.lang.NumberFormatException

ObjectFloatUnitVector

public ObjectFloatUnitVector(int dimension)

ObjectFloatUnitVector

public ObjectFloatUnitVector(float[] data)
                      throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

ObjectFloatUnitVector

protected ObjectFloatUnitVector(BinaryInput input,
                                BinarySerializator serializator)
                         throws java.io.IOException
Creates a new instance of ObjectFloatUnitVector loaded from binary input buffer.

Parameters:
input - the buffer to read the ObjectFloatVector from
serializator - the serializator used to write objects
Throws:
java.io.IOException - if there was an I/O error reading from the buffer